Merge branch 'build' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_webapp into build
This commit is contained in:
@@ -45,7 +45,7 @@ export default {
|
|||||||
default: () => [
|
default: () => [
|
||||||
{prop: 'label', label: "应用名称"},
|
{prop: 'label', label: "应用名称"},
|
||||||
{prop: 'project', label: "项目/框架"},
|
{prop: 'project', label: "项目/框架"},
|
||||||
{prop: 'category', label: "分类", dict: "appsCategory"},
|
{prop: 'category', label: "分类"},
|
||||||
{prop: 'name', label: "模块名"},
|
{prop: 'name', label: "模块名"},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -87,7 +87,7 @@ export default {
|
|||||||
const {page, search, action, meta, searchKey, dict, customData} = this
|
const {page, search, action, meta, searchKey, dict, customData} = this
|
||||||
if (meta.length > 0 || customData) {
|
if (meta.length > 0 || customData) {
|
||||||
const reg = new RegExp(search[searchKey])
|
const reg = new RegExp(search[searchKey])
|
||||||
this.handleTableData(meta.filter(e => reg.test(e.label) || reg.test(e.name) || reg.test(dict.getLabel('appsCategory', e.category))))
|
this.handleTableData(meta.filter(e => reg.test(e.label) || reg.test(e.name) || reg.test(e.category)))
|
||||||
} else this.instance?.post(action, null, {
|
} else this.instance?.post(action, null, {
|
||||||
params: {...page, ...search}
|
params: {...page, ...search}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -143,7 +143,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.dict.load('appsCategory')
|
|
||||||
this.$set(this.search, this.searchKey, "")
|
this.$set(this.search, this.searchKey, "")
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.dict.load('yesOrNo', 'systemType', 'appsCategory')
|
this.dict.setStorage([{
|
||||||
|
key: "systemType",
|
||||||
|
name: "系统类型",
|
||||||
|
values: [
|
||||||
|
{dictValue: "web", dictName: "web端"},
|
||||||
|
{dictValue: "mp", dictName: "小程序"},
|
||||||
|
{dictValue: "h5", dictName: "移动端H5"},
|
||||||
|
]
|
||||||
|
}])
|
||||||
|
this.dict.load('yesOrNo')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user