|
|
@@ -442,43 +442,6 @@ export default {
|
|
|
// });
|
|
|
},
|
|
|
getDmsDataList() {
|
|
|
- let requestParams = {
|
|
|
- columnId: systemConfig.columnIds[1], // 应用中心栏目id
|
|
|
- states: 0,
|
|
|
- orderBy: JSON.stringify([{ field: "create_time", orderByType: 2 }]),
|
|
|
- pageSize: 9999,
|
|
|
- page: 0,
|
|
|
- };
|
|
|
- appCenter.getDmsDataList(requestParams).then((res) => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.itemApplications = res.content.data.map((item) => ({
|
|
|
- ...item,
|
|
|
- status:
|
|
|
- item.status === 0
|
|
|
- ? "待审核"
|
|
|
- : item.status === 1
|
|
|
- ? "待发布"
|
|
|
- : item.status === 2
|
|
|
- ? "未完成"
|
|
|
- : "已完成",
|
|
|
- buffName:
|
|
|
- this.buffOptions.find((info) => info.label == item.appbuff.trim())?.value || "",
|
|
|
- appstautName:
|
|
|
- this.statusOptions.find((info) => info.label == item.appstauts.trim())?.value || "",
|
|
|
- createTime: moment(item.create_time).format("YYYY-MM-DD HH:mm:ss"),
|
|
|
- }));
|
|
|
- this.applications = this.itemApplications;
|
|
|
- // this.selectAapplications = this.applications.filter((item) => item.yylx == "0"); //yylx 0:内部 1:外部
|
|
|
- this.newApplications = this.applications.slice(0, 10); // 获取前十个元素
|
|
|
- // this.selectedAppRange = this.applications[0].title;
|
|
|
- this.getTypeArrs();
|
|
|
- this.getCountAppInfo();
|
|
|
- } else {
|
|
|
- this.applications = [];
|
|
|
- this.selectAapplications = [];
|
|
|
- this.selectedAppRange = "";
|
|
|
- }
|
|
|
- });
|
|
|
|
|
|
let param = {
|
|
|
start: "2000-01-01",
|
|
|
@@ -487,10 +450,51 @@ export default {
|
|
|
getAppList(param.start, param.end).then((res) => {
|
|
|
// console.log("=======getAppList======"+res);
|
|
|
this.selectAapplications = res;
|
|
|
- this.selectedAppRange = this.selectAapplications[0].name;
|
|
|
+ this.selectAapplications.forEach((item) => {
|
|
|
+ if(item.name.includes("华新镇")){
|
|
|
+ this.selectedAppRange = item.name;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
+ let requestParams = {
|
|
|
+ columnId: systemConfig.columnIds[1], // 应用中心栏目id
|
|
|
+ states: 0,
|
|
|
+ orderBy: JSON.stringify([{ field: "create_time", orderByType: 2 }]),
|
|
|
+ pageSize: 9999,
|
|
|
+ page: 0,
|
|
|
+ };
|
|
|
+ appCenter.getDmsDataList(requestParams).then((res) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.itemApplications = res.content.data.map((item) => ({
|
|
|
+ ...item,
|
|
|
+ status:
|
|
|
+ item.status === 0
|
|
|
+ ? "待审核"
|
|
|
+ : item.status === 1
|
|
|
+ ? "待发布"
|
|
|
+ : item.status === 2
|
|
|
+ ? "未完成"
|
|
|
+ : "已完成",
|
|
|
+ buffName:
|
|
|
+ this.buffOptions.find((info) => info.label == item.appbuff.trim())?.value || "",
|
|
|
+ appstautName:
|
|
|
+ this.statusOptions.find((info) => info.label == item.appstauts.trim())?.value || "",
|
|
|
+ createTime: moment(item.create_time).format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ }));
|
|
|
+ this.applications = this.itemApplications;
|
|
|
+ // this.selectAapplications = this.applications.filter((item) => item.yylx == "0"); //yylx 0:内部 1:外部
|
|
|
+ this.newApplications = this.applications.slice(0, 10); // 获取前十个元素
|
|
|
+ // this.selectedAppRange = this.applications[0].title;
|
|
|
+ this.getTypeArrs();
|
|
|
+ this.getCountAppInfo();
|
|
|
+ } else {
|
|
|
+ this.applications = [];
|
|
|
+ this.selectAapplications = [];
|
|
|
+ this.selectedAppRange = "";
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
-
|
|
|
},
|
|
|
getTypeArrs() {
|
|
|
let that = this;
|