|
@@ -106,6 +106,17 @@
|
|
>{{ $t('修改') }}
|
|
>{{ $t('修改') }}
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
+ size="mini"
|
|
|
|
+ :disabled="multiple"
|
|
|
|
+ @click="handleBatch"
|
|
|
|
+ v-hasPermi="['sems:specYlrq:edit']"
|
|
|
|
+ >{{ $t('批量') + $t('修改') }}
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
type="danger"
|
|
type="danger"
|
|
@@ -597,6 +608,29 @@
|
|
<el-button @click="cancel">{{ $t('取 消') }}</el-button>
|
|
<el-button @click="cancel">{{ $t('取 消') }}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
|
|
+ <el-dialog :close-on-click-modal="false" v-dialogDrag :title="title" :visible.sync="openBatch" width="50%" append-to-body>
|
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="160px">
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <h3>已选择 {{ ids.length }} 条数据 </h3> <span>(不填内容的字段不进行修改)</span>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('装置维修工程师')" prop="engineer">
|
|
|
|
+ <el-input v-model="form.engineer" :placeholder="$t('请输入')+ $t('装置维修工程师')"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('备注')" prop="remarks">
|
|
|
|
+ <el-input v-model="form.remarks" type="textarea" :placeholder="$t('请输入')+ $t('内容')"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('备注2')" prop="remarks2">
|
|
|
|
+ <el-input v-model="form.remarks2" type="textarea" :placeholder="$t('请输入')+ $t('内容')"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="submitFormBatch">{{ $t('确 定') }}</el-button>
|
|
|
|
+ <el-button @click="cancelBatch">{{ $t('取 消') }}</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
|
|
+
|
|
<!-- 用户导入对话框 -->
|
|
<!-- 用户导入对话框 -->
|
|
<el-dialog :close-on-click-modal="false" v-dialogDrag :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
<el-dialog :close-on-click-modal="false" v-dialogDrag :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
<div style="margin-bottom: 20px;">
|
|
<div style="margin-bottom: 20px;">
|
|
@@ -715,7 +749,8 @@ import {
|
|
updateSpecYlrqPre,
|
|
updateSpecYlrqPre,
|
|
updateSpecYlrq,
|
|
updateSpecYlrq,
|
|
exportSpecList,
|
|
exportSpecList,
|
|
- duplicate
|
|
|
|
|
|
+ duplicate,
|
|
|
|
+ updateSpecYlrqBatch
|
|
} from "@/api/sems/specYlrq";
|
|
} from "@/api/sems/specYlrq";
|
|
import {treeselect} from "@/api/system/dept";
|
|
import {treeselect} from "@/api/system/dept";
|
|
import {getToken} from "@/utils/auth";
|
|
import {getToken} from "@/utils/auth";
|
|
@@ -766,6 +801,7 @@ export default {
|
|
specYlrqList: [],
|
|
specYlrqList: [],
|
|
// 弹出层标题
|
|
// 弹出层标题
|
|
title: "",
|
|
title: "",
|
|
|
|
+ openBatch: false,
|
|
// 部门树选项
|
|
// 部门树选项
|
|
deptOptions: undefined,
|
|
deptOptions: undefined,
|
|
clientHeight: 300,
|
|
clientHeight: 300,
|
|
@@ -996,6 +1032,16 @@ export default {
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = this.$t('添加特种设备压力容器台账');
|
|
this.title = this.$t('添加特种设备压力容器台账');
|
|
},
|
|
},
|
|
|
|
+ handleBatch(){
|
|
|
|
+ this.reset();
|
|
|
|
+ this.title = this.$t('修改特种设备压力容器台账');
|
|
|
|
+ this.openBatch = true
|
|
|
|
+ },
|
|
|
|
+ // 取消按钮
|
|
|
|
+ cancelBatch() {
|
|
|
|
+ this.openBatch = false;
|
|
|
|
+ this.reset();
|
|
|
|
+ },
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
this.reset();
|
|
this.reset();
|
|
@@ -1052,6 +1098,20 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ submitFormBatch(){
|
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ this.form.ids = this.ids
|
|
|
|
+ updateSpecYlrqBatch(this.form).then(response => {
|
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
|
+ this.open = false;
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|