|
@@ -54,16 +54,16 @@
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="handleAdd"
|
|
|
- v-hasPermi="['lnst:sbxx:add']"
|
|
|
- >新增</el-button>
|
|
|
- </el-col>
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="primary"-->
|
|
|
+<!-- plain-->
|
|
|
+<!-- icon="el-icon-plus"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- @click="handleAdd"-->
|
|
|
+<!-- v-hasPermi="['lnst:sbxx:add']"-->
|
|
|
+<!-- >新增</el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
@@ -373,7 +373,19 @@
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
handleStatus(row) {
|
|
|
- const param = { id: row.id, syzt: row.syzt === '1' ? '2' : '1' }
|
|
|
+ let zt;
|
|
|
+ if (row.syzt === '1') {
|
|
|
+ zt = '2';
|
|
|
+ } else {
|
|
|
+ zt = '1';
|
|
|
+ }
|
|
|
+ if (zt === '1') {
|
|
|
+ if (!row.yqbm || !row.yqmc || !row.stbm || !row.stmc) {
|
|
|
+ this.$modal.msgWarning("信息不全不能启用!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const param = { id: row.id, syzt: zt }
|
|
|
this.submitFormLoading = true;
|
|
|
updateSbxx(param).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|