diff --git a/project/oms/apps/develop/AppDeployWxmp/AppDeployWxmp.vue b/project/oms/apps/develop/AppDeployWxmp/AppDeployWxmp.vue
index c4e12b61..648adf56 100644
--- a/project/oms/apps/develop/AppDeployWxmp/AppDeployWxmp.vue
+++ b/project/oms/apps/develop/AppDeployWxmp/AppDeployWxmp.vue
@@ -4,9 +4,9 @@
-
-
-
+
+ 同步数据
+
@@ -17,7 +17,7 @@
-
@@ -43,10 +43,11 @@
- {{ form.name }}(appid:)
+ {{ form.name }}(appid:)
-
+ form.versionName=v.name"/>
@@ -102,8 +103,8 @@ export default {
colConfigs: [
{slot: "expand"},
{label: "项目/系统名称", prop: "name", width: 300},
- {label: "appId", prop: "miniapp_appid", width: 180},
- {label: "管理后台", prop: "web_url"},
+ {label: "appId", prop: "appid", width: 180},
+ {label: "管理后台", prop: "webUrl"},
{label: "上传版本", render: (h, {row}) => h('p', row.versionName || row.version)},
{slot: "process"},
{slot: "options"}
@@ -119,20 +120,26 @@ export default {
}
},
methods: {
+ handleSyncData() {
+ this.instance.post("/node/wxmp/sync").then(this.getTableData)
+ },
getTableData() {
this.instance.post("/node/wxmp/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
- this.tableData = res.data?.records.map(e => ({...e, count: 0}))
+ this.tableData = res.data?.records.map(e => {
+ e.dvcpConfig = JSON.parse(e.dvcpConfig)
+ return {...e, count: 0}
+ })
this.page.total = res.data.total
}
})
},
handleDownload(row) {
- let {appid, pid} = row
+ let {id} = row
this.instance.post("/node/wxmp/download", null, {
- params: {appid, pid},
+ params: {id},
responseType: "blob"
}).then(res => {
if (res?.code == 1) {
@@ -150,7 +157,7 @@ export default {
})
},
handleZip(row) {
- let {miniapp_appid: appid, version, id} = row
+ let {appid, version, id} = row
if (!version) return this.$message.error("请先维护要上传的版本!")
appid && this.instance.post("/node/wxmp/getZip", null, {
params: {appid, id}
diff --git a/ui/packages/basic/AiSelect.vue b/ui/packages/basic/AiSelect.vue
index f9e857ef..35d60713 100644
--- a/ui/packages/basic/AiSelect.vue
+++ b/ui/packages/basic/AiSelect.vue
@@ -37,6 +37,10 @@ export default {
handler(v) {
v && this.isAction && !this.options.toString() && this.getOptions()
}
+ },
+ value(v) {
+ this.$emit("select", this.isAction ? this.options.find(e => e[this.actionProp.value] == v) :
+ this.selectList.find(e => e.dictValue == v))
}
},
props: {
@@ -100,7 +104,7 @@ export default {