Browse Source

feat: 修改

linwenxin 1 year ago
parent
commit
8f7de52d33

+ 5 - 15
src/views/mallManagement/configCenter/annunciationConfig/index.vue

@@ -5,23 +5,15 @@
     <div style="margin-top: 20px;">
       <el-form label-position="left" label-width="80px">
         <el-form-item label="通告内容">
-          <el-input
-            type="textarea"
-            :rows="6"
-            placeholder="请输入通告内容"
-            v-model="mainData.noticeContent">
+          <el-input type="textarea" :rows="6" placeholder="请输入通告内容" v-model="mainData.noticeContent">
           </el-input>
         </el-form-item>
         <el-form-item label="通告状态">
-          <el-switch
-            v-model="mainData.status"
-            active-text="启用"
-            inactive-text="禁用">
+          <el-switch v-model="mainData.status" active-text="启用" inactive-text="禁用">
           </el-switch>
         </el-form-item>
       </el-form>
     </div>
-
     <div class="page-footer">
       <div class="footer" :class="classObj">
         <el-button type="primary" @click="submitMainForm">保存</el-button>
@@ -74,12 +66,12 @@ export default {
 
     // 提交表单
     submitMainForm() {
-      if(this.mainData.status && !this.mainData.noticeContent) {
+      if (this.mainData.status && !this.mainData.noticeContent) {
         return this.$errorMsg('启用状态时,内容不能为空');
       }
 
       // 编辑
-      if(this.mainData.noticeId) {
+      if (this.mainData.noticeId) {
         editNotice({
           noticeId: this.mainData.noticeId,
           noticeContent: this.mainData.noticeContent,
@@ -104,6 +96,4 @@ export default {
 }
 </script>
 
-<style scoped lang="scss">
-  
-</style>
+<style scoped lang="scss"></style>

+ 3 - 2
src/views/mallManagement/configCenter/mallConfig/index.vue

@@ -449,7 +449,7 @@ export default {
       getTemplate({
         companyId: this.companyId
       }).then(res => {
-        if(res.data){
+        if (res.data) {
           this.templateList = res.data;
         }
         this.initHome();
@@ -736,4 +736,5 @@ export default {
 .nodata {
   font-size: 18px;
   color: #666666;
-}</style>
+}
+</style>

+ 1 - 1
src/views/mallManagement/configCenter/slideshowConfig/index.vue

@@ -62,7 +62,7 @@ export default {
       recordSelected: [],
       /** 表单变量 */
       formDialogType: 0,
-      formDialogTitles: ["新增"],
+      formDialogTitles: ["新增", "编辑"],
       formDialog: false,
       formData: {
         carouselName: "",

+ 7 - 7
src/views/mallManagement/freight/index.vue

@@ -64,7 +64,7 @@ export default {
       recordSelected: [],
       /** 表单变量 */
       formDialogType: 0,
-      formDialogTitles: ["新增"],
+      formDialogTitles: ["新增", "编辑"],
       formDialog: false,
       formData: {
         name: '',
@@ -204,7 +204,7 @@ export default {
         isShow: true,
         name: 'el-tree',
         attributes: {
-          style:"max-height: 400px; overflow-y: scroll;",
+          style: "max-height: 400px; overflow-y: scroll;",
           placeholder: '请输入', data: this.regionTree, 'show-checkbox': true, 'node-key': "id", props: {
             children: 'child',
             label: 'name'
@@ -353,16 +353,16 @@ export default {
       this.formDialog2 = false
     },
     formConfirm2() {
-      var tree = (function getEl(arr){
+      var tree = (function getEl(arr) {
         var data
-        for(var item of arr){
-          if(item.$el.className==="el-tree"){
+        for (var item of arr) {
+          if (item.$el.className === "el-tree") {
             return item
-          }else if(item.$children && item.$children.length){
+          } else if (item.$children && item.$children.length) {
             data = getEl(item.$children)
           }
         }
-        if(data){
+        if (data) {
           return data
         }
       })(this.$refs.formRef2.$children)

+ 1 - 1
src/views/mallManagement/storage/index.vue

@@ -52,7 +52,7 @@ export default {
       recordSelected: [],
       /** 表单变量 */
       formDialogType: 0,
-      formDialogTitles: ["新增"],
+      formDialogTitles: ["新增", "编辑"],
       formDialog: false,
       formData: {
         storageName: '',