From 085fa2fb257e9f11f8f6d34bf12e2dc281c36b4d Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期四, 09 二月 2023 11:28:21 +0800 Subject: [PATCH] 2023/2/9 肖辉 修改部门管理 --- src/views/operate/fivepack/threepack/components/updateUser/index.vue | 40 ++++++++++++++++++++++++++++++++++------ 1 files changed, 34 insertions(+), 6 deletions(-) diff --git a/src/views/operate/fivepack/threepack/components/updateUser/index.vue b/src/views/operate/fivepack/threepack/components/updateUser/index.vue index e74c56b..be21408 100644 --- a/src/views/operate/fivepack/threepack/components/updateUser/index.vue +++ b/src/views/operate/fivepack/threepack/components/updateUser/index.vue @@ -82,6 +82,27 @@ ></el-option> </el-select> </el-form-item> + + <!-- 搴楅摵鐘舵�� --> + <el-form-item + v-if="isStorePage" + class="optionItem" + label="搴楅摵鐘舵��:" + prop="status" + > + <el-select + v-model="store.status" + placeholder="璇烽�夋嫨搴楅摵鐘舵��" + :disabled="isView()" + > + <el-option + v-for="item in statusList" + :key="item.id" + :value="item.id" + :label="item.name" + ></el-option> + </el-select> + </el-form-item> <el-form-item v-if="!isStorePage" class="optionItem" @@ -147,6 +168,7 @@ relationVideo: "", type: null, storeScore: null, + status: null, }, rules: { type: [{ required: true, validator: validateStoreType }], @@ -168,9 +190,16 @@ relationVideo: [ { required: true, trigger: "blur", message: "璇疯緭鍏ュ叧鑱旀憚鍍忔満" }, ], + status: [ + { required: true, trigger: "blur", message: "璇烽�夋嫨搴楅摵鐘舵��" }, + ], }, shopTypeList: [], relationVideoList: [], + statusList: [ + { id: 1, name: "缁忚惀" }, + { id: 2, name: "鍊掗棴" }, + ], }; }, async created() { @@ -183,7 +212,7 @@ this.store.relationVideo = this.store.videoPoint.name; } } - + if (!this.isView()) { await this.getShopTypeList(); } @@ -193,7 +222,6 @@ onSubmit() { this.$refs.store.validate((valid) => { if (valid) { - debugger this.store.type = this.store.type[1]; if (this.isCreated()) { addStoreInfo(this.store) @@ -242,7 +270,7 @@ async getShopTypeList() { let arr = await getCodeList("16"); this.shopTypeList = this.createShopTypeTree(arr); - + if (this.dialogType === "update") { const selectedStoreType = arr.find( (item) => item.name === this.store.typeName @@ -286,12 +314,12 @@ <style lang="scss" scoped> .updateUser { border-radius: 1px; - background-color: #09152f; + // background-color: #09152f; main { text-align: left; padding: 0 55px; - background-color: #09152f; + background-color: #ffffff; .mainContent { display: flex; @@ -336,7 +364,7 @@ } .updateUser::v-deep .el-input__inner { - background-color: #09152f; + // background-color: #09152f; border: 1px solid #17324c; } </style> \ No newline at end of file -- Gitblit v1.8.0