|
|
@@ -307,9 +307,6 @@ Page({
|
|
|
if (!isLeader) isLeader = data.editable == 1;
|
|
|
editdataleader = data.editdataleader;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if (appAuth.isdatafollowup) {
|
|
|
tabsList.unshift({
|
|
|
label: "跟进动态",
|
|
|
@@ -321,7 +318,15 @@ Page({
|
|
|
label: "跟进"
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+ tabsList = tabsList.concat([{
|
|
|
+ label: "附件",
|
|
|
+ icon: "icon-tabfujian1",
|
|
|
+ model: "#Files"
|
|
|
+ }, {
|
|
|
+ label: "操作",
|
|
|
+ icon: "icon-tabcaozuojilu1",
|
|
|
+ model: "#Record"
|
|
|
+ }])
|
|
|
if (isLeader || isAdmin) {
|
|
|
tabbarList.push({
|
|
|
icon: "color-bianji",
|
|
|
@@ -353,21 +358,25 @@ Page({
|
|
|
},
|
|
|
//局部数据更新 tabs
|
|
|
partialRenewal(init = false) {
|
|
|
- let model = this.data.tabsList[this.data.tabsActive].model;
|
|
|
- if (model) {
|
|
|
- let Component = this.selectComponent(model),
|
|
|
- {
|
|
|
- total,
|
|
|
- pageNumber,
|
|
|
- pageTotal
|
|
|
- } = Component.data.content,
|
|
|
- id = model == "#Clue" ? this.data.detail.sa_customersid : this.data.detail.sys_enterpriseid;
|
|
|
- if (model == "#Files") init = true;
|
|
|
- if (total == null || init) {
|
|
|
- Component.getList(id, init);
|
|
|
- } else if (pageNumber <= pageTotal) {
|
|
|
- Component.getList(id, false);
|
|
|
+ try {
|
|
|
+ let model = this.data.tabsList[this.data.tabsActive].model;
|
|
|
+ if (model) {
|
|
|
+ let Component = this.selectComponent(model),
|
|
|
+ {
|
|
|
+ total,
|
|
|
+ pageNumber,
|
|
|
+ pageTotal
|
|
|
+ } = Component.data.content,
|
|
|
+ id = model == "#Clue" ? this.data.detail.sa_customersid : this.data.detail.sys_enterpriseid;
|
|
|
+ if (model == "#Files") init = true;
|
|
|
+ if (total == null || init) {
|
|
|
+ Component.getList(id, init);
|
|
|
+ } else if (pageNumber <= pageTotal) {
|
|
|
+ Component.getList(id, false);
|
|
|
+ }
|
|
|
}
|
|
|
+ } catch (error) {
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
//更新标签
|