Commit beb76636 authored by “yiyousong”'s avatar “yiyousong”

feat:添加移动应用时添加微信小程序选项

parent 4a3e39cb
...@@ -82,9 +82,10 @@ ...@@ -82,9 +82,10 @@
</a-button> --> </a-button> -->
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="应用类型" prop="appType"> <a-form-model-item label="应用类型" prop="appType">
<a-radio-group v-model="form.appType"> <a-radio-group v-model="form.appType" @change="changeAppType">
<a-radio :value="1"> 应用程序 </a-radio> <a-radio :value="1"> 应用程序 </a-radio>
<a-radio :value="2"> URL </a-radio> <a-radio :value="2"> URL </a-radio>
<a-radio :value="3" v-if="form.type != 1"> 微信小程序 </a-radio>
</a-radio-group> </a-radio-group>
</a-form-model-item> </a-form-model-item>
<a-form-model-item <a-form-model-item
...@@ -200,7 +201,7 @@ export default { ...@@ -200,7 +201,7 @@ export default {
appIconPath: "", // 应用图标 appIconPath: "", // 应用图标
appThemeName: undefined, // 应用主题名称 appThemeName: undefined, // 应用主题名称
type: "", // 类型(1.终端应用,2.移动端应用) type: "", // 类型(1.终端应用,2.移动端应用)
appType: 1, // 类型(1.应用程序,2.url) appType: 1, // 类型(1.应用程序,2.url,3.微信小程序)
shelves: 0, shelves: 0,
fileName: "", // 文件名称 fileName: "", // 文件名称
filePath: "", // 文件相对路径地址 filePath: "", // 文件相对路径地址
...@@ -250,6 +251,7 @@ export default { ...@@ -250,6 +251,7 @@ export default {
], ],
}, },
fileList: [], fileList: [],
beFrom: "", // 来自终端还是移动端
}; };
}, },
computed: { computed: {
...@@ -351,6 +353,13 @@ export default { ...@@ -351,6 +353,13 @@ export default {
changeSite(value, label) { changeSite(value, label) {
this.form.siteName = label[0]; this.form.siteName = label[0];
}, },
// 改变类型
changeAppType(e) {
let val = e.target.value;
if (val == 1) {
this.form.url = "";
}
},
}, },
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment