|
@@ -55,14 +55,12 @@
|
|
|
@click="handleDelete"
|
|
|
>删除</el-button>
|
|
|
</el-col>
|
|
|
-
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
<el-table v-loading="loading" :data="deptList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column label="事项标题" align="center" prop="title" />
|
|
|
<el-table-column label="主题类型" align="center" prop="type" />
|
|
|
<el-table-column label="所属部门" align="center" prop="department" />
|
|
|
-
|
|
|
<el-table-column label="是否展示" align="center" key="operation">
|
|
|
<template slot-scope="scope">
|
|
|
<el-switch
|
|
@@ -103,7 +101,6 @@
|
|
|
@click="handleDelete(scope.row)"
|
|
|
>删除</el-button>
|
|
|
<el-button
|
|
|
- v-if="scope.row.examine != 1"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
@@ -166,11 +163,11 @@
|
|
|
>{{dict.label}}</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="电话" prop="address" style="width: 300px;">
|
|
|
- <el-input v-model="form.address" placeholder="请输入电话" />
|
|
|
+ <el-form-item label="电话" prop="phone" style="width: 300px;">
|
|
|
+ <el-input v-model="form.phone" placeholder="请输入电话" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="地址" prop="phone" style="width: 300px;">
|
|
|
- <el-input v-model="form.phone" placeholder="请输入地址" />
|
|
|
+ <el-form-item label="地址" prop="address" style="width: 300px;">
|
|
|
+ <el-input v-model="form.address" placeholder="请输入地址" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="图片" prop="picture">
|
|
|
<image-upload v-model="form.picture" :fileSize="10" :limit="1"/>
|
|
@@ -238,11 +235,11 @@
|
|
|
>{{dict.label}}</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="电话" prop="address" style="width: 300px;" >
|
|
|
- <el-input v-model="form.address" placeholder="请输入电话" :readonly="true" />
|
|
|
+ <el-form-item label="电话" prop="phone" style="width: 300px;" >
|
|
|
+ <el-input v-model="form.phone" placeholder="请输入电话" :readonly="true" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="地址" prop="phone" style="width: 300px;" >
|
|
|
- <el-input v-model="form.phone" placeholder="请输入地址" :readonly="true" />
|
|
|
+ <el-form-item label="地址" prop="address" style="width: 300px;" >
|
|
|
+ <el-input v-model="form.address" placeholder="请输入地址" :readonly="true" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="图片" prop="picture" >
|
|
|
<image-upload v-model="form.picture" :fileSize="10" :limit="1" />
|
|
@@ -377,14 +374,7 @@
|
|
|
this.title = "详情";
|
|
|
});
|
|
|
},
|
|
|
- // getDept(row.id).then(response => {
|
|
|
- // this.form = response.data;
|
|
|
- // this.$nextTick(() => {
|
|
|
- // this.form.operation = this.form.operation.toString();
|
|
|
- // });
|
|
|
- // this.open = true;
|
|
|
- // this.title = "修改事项";
|
|
|
- // });
|
|
|
+
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
|
this.open = false;
|
|
@@ -453,6 +443,7 @@
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
+ this.form.examine = 3
|
|
|
addDept(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
@@ -487,13 +478,13 @@
|
|
|
},
|
|
|
// 用户状态修改
|
|
|
handleStatusChange(row) {
|
|
|
- let text = row.operation === "0" ? "启用" : "停用";
|
|
|
- this.$modal.confirm('确认要"' + text + '""' + row.userName + '"用户吗?').then(function() {
|
|
|
+ let text = row.operation == "0" ? "展示" : "取消展示";
|
|
|
+ this.$modal.confirm('确认要"' + text + "该" + '事项吗?').then(function() {
|
|
|
return updateDept(row);
|
|
|
}).then(() => {
|
|
|
this.$modal.msgSuccess(text + "成功");
|
|
|
}).catch(function() {
|
|
|
- row.operation = row.operation === "0" ? "1" : "0";
|
|
|
+ row.operation = row.operation == "0" ? "1" : "0";
|
|
|
});
|
|
|
},
|
|
|
/** 删除按钮操作 */
|