Browse Source

feature(优化):
1、产品编辑
2、删除客户导出
3、登录背景图调整
4、调研问卷权限问题
5、公告样式调整

ZZH-wl 2 years ago
parent
commit
eed69465b1

+ 4 - 5
src/views/base/product/components/ProductEdit.vue

@@ -153,15 +153,14 @@
       save() {
         this.$refs['editForm'].validate(async (valid) => {
           if (valid) {
+            this.editForm.guidPrice = parseFloat(this.editForm.guidPrice).toFixed(2)
+            this.editForm.distPrice = parseFloat(this.editForm.distPrice).toFixed(2)
+            this.editForm.agentPrice = parseFloat(this.editForm.agentPrice).toFixed(2)
+            this.editForm.marketPrice = parseFloat(this.editForm.marketPrice).toFixed(2)
             if (this.editForm.id) {
-              this.editForm.guidPrice = parseFloat(this.editForm.guidPrice).toFixed(2)
-              this.editForm.distPrice = parseFloat(this.editForm.distPrice).toFixed(2)
-              this.editForm.agentPrice = parseFloat(this.editForm.agentPrice).toFixed(2)
-              this.editForm.marketPrice = parseFloat(this.editForm.marketPrice).toFixed(2)
               const { msg } = await productApi.doEdit(this.editForm)
               this.$baseMessage(msg, 'success', 'vab-hey-message-success')
             } else {
-              this.editForm.guidPrice = parseFloat(this.editForm.guidPrice).toFixed(2)
               const { msg } = await productApi.doAdd(this.editForm)
               this.$baseMessage(msg, 'success', 'vab-hey-message-success')
             }

+ 1 - 1
src/views/customer/list.vue

@@ -79,7 +79,7 @@
         </el-button>
       </vab-query-form-left-panel>
       <vab-query-form-right-panel :span="12">
-        <el-button icon="el-icon-download" @click="exportData" />
+        <!--        <el-button icon="el-icon-download" @click="exportData" />-->
         <table-tool :check-list.sync="checkList" :columns="columns" />
       </vab-query-form-right-panel>
     </vab-query-form>

+ 1 - 1
src/views/customer/openSea.vue

@@ -53,7 +53,7 @@
         </el-button>
       </vab-query-form-left-panel>
       <vab-query-form-right-panel :span="12">
-        <el-button icon="el-icon-download" @click="exportData" />
+        <!--        <el-button icon="el-icon-download" @click="exportData" />-->
         <table-tool :check-list.sync="checkList" :columns="columns" />
       </vab-query-form-right-panel>
     </vab-query-form>

+ 1 - 1
src/views/login/index.vue

@@ -235,7 +235,7 @@
         width: 60%;
         height: 100%;
         background: url('~@/assets/login_images/login.png') center center no-repeat;
-        background-size: contain;
+        background-size: 90%;
       }
     }
   }

+ 1 - 1
src/views/plat/questionnaire/index.vue

@@ -62,7 +62,7 @@
       </el-table-column>
       <el-table-column align="center" label="操作" show-overflow-tooltip width="125">
         <template #default="{ row }">
-          <el-button v-permissions="['system:report:edit']" type="text" @click="handleEdit(row)">跟进</el-button>
+          <el-button v-permissions="['plat:questionnaire:follow']" type="text" @click="handleEdit(row)">跟进</el-button>
         </template>
       </el-table-column>
       <template #empty>

+ 2 - 2
src/views/system/notice/details.vue

@@ -1,10 +1,10 @@
 <template>
-  <el-dialog :title="title" :visible.sync="dialogFormVisible" width="80%" @close="close">
+  <el-dialog :title="title" :visible.sync="dialogFormVisible" width="60%" @close="close">
     <div style="text-align: center">
       <h1>{{ details.msgTitle }}</h1>
       <p>{{ details.createdTime }}</p>
-      <div style="margin: 10px" v-html="details.msgContent"></div>
     </div>
+    <div style="margin: 10px 60px" v-html="details.msgContent"></div>
     <div slot="footer" class="dialog-footer"></div>
   </el-dialog>
 </template>