|
@@ -17,6 +17,18 @@
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ size="mini"
|
|
|
+ :disabled="multiple"
|
|
|
+ @click="handleBatch"
|
|
|
+ v-if="isApprove==0"
|
|
|
+ v-hasPermi="['pssr:overhaulExchanger:edit']"
|
|
|
+ >批量修改
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="success"
|
|
@@ -145,7 +157,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {addAlarm, delAlarm, exportAlarm, getAlarm, importTemplate, listAlarm, updateAlarm} from "@/api/pssr/alarm";
|
|
|
+import {addAlarm, delAlarm, exportAlarm, getAlarm, importTemplate, listAlarm, updateAlarm, updateAlarmBatch} from "@/api/pssr/alarm";
|
|
|
import {treeselect} from "@/api/system/dept";
|
|
|
import {getToken} from "@/utils/auth";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
@@ -460,6 +472,28 @@ export default {
|
|
|
this.pdf.title = row.fileName
|
|
|
this.pdf.pdfUrl = process.env.VUE_APP_BASE_API + '/pdf/web/viewer.html?file=' + process.env.VUE_APP_BASE_API + row.fileUrl
|
|
|
},
|
|
|
+ handleBatch(){
|
|
|
+ this.reset();
|
|
|
+ this.openBatch = true
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancelBatch() {
|
|
|
+ this.openBatch = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitFormBatch() {
|
|
|
+ this.$refs["form"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ this.form.ids = this.ids
|
|
|
+ updateAlarmBatch(this.form).then(response => {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|