Sfoglia il codice sorgente

基础资料禁用

wangzhuo 1 anno fa
parent
commit
f2779c83a1

+ 4 - 0
src/views/tirePartsMall/basicData/accountManagement/index.vue

@@ -6,6 +6,10 @@
         @search-change="searchChange" @row-del="rowDel" @refresh-change="refreshChange"
         @resetColumn="resetColumnTwo('crud', 'option', 'optionList', 265)"
         @saveColumn="saveColumnTwo('crud', 'option', 'optionList', 265)" :page.sync="page">
+        <template slot="enableOrNot" slot-scope="{row,index,disabled}">
+          <div v-if="row.enableOrNot === 1">是</div>
+          <div v-else style="color: red">否</div>
+        </template>
         <template slot-scope="{type,size,row,index}" slot="menu">
           <el-button :size="size" :type="type" @click="check(row)">查看</el-button>
           <el-button :size="size" :type="type" :disabled="row.enableOrNot" @click="$refs.crud.rowDel(row, index)">删除

+ 4 - 0
src/views/tirePartsMall/basicData/brandPage/index.vue

@@ -16,6 +16,10 @@
           @resetColumn="resetColumnTwo('crud','option','optionList',272)"
           @saveColumn="saveColumnTwo('crud','option','optionList',272)"
           :page.sync="page">
+        <template slot="enableOrNot" slot-scope="{row,index,disabled}">
+          <div v-if="row.enableOrNot === 1">是</div>
+          <div v-else style="color: red">否</div>
+        </template>
         <template slot-scope="{type,size,row,index}" slot="menu">
           <!-- <el-button :size="size" :type="type" @click="check(row)">查看</el-button> -->
           <el-button :size="size" :type="type" :disabled="row.enableOrNot" @click="$refs.crud.rowDel(row,index)">删除

+ 4 - 0
src/views/tirePartsMall/basicData/commodityInformation/index.vue

@@ -25,6 +25,10 @@
               <el-button type="primary" size="mini" icon="el-icon-top" @click="outExport">导出
               </el-button>
             </template>
+            <template slot="enableOrNot" slot-scope="{row,index,disabled}">
+              <div v-if="row.enableOrNot === 1">是</div>
+              <div v-else style="color: red">否</div>
+            </template>
             <template slot-scope="{ row, index }" slot="cname">
               <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.cname }}
               </span>

+ 4 - 0
src/views/tirePartsMall/basicData/customerInformation/index.vue

@@ -26,6 +26,10 @@
               <el-button type="primary" size="mini" icon="el-icon-top" @click="outExport">导出
               </el-button>
             </template>
+            <template slot="enableOrNot" slot-scope="{row,index,disabled}">
+              <div v-if="row.enableOrNot === 1">启用</div>
+              <div v-else style="color: red">禁用</div>
+            </template>
             <template slot-scope="{ row, index }" slot="cname">
               <span style="color: #409EFF;cursor: pointer" @click.stop="editOpen(row, 2)">{{ row.cname }}</span>
             </template>