|
@@ -184,7 +184,8 @@
|
|
|
deleteBatch: "/cmmsSpotcheckContent/cmmsSpotcheckContent/deleteBatch",
|
|
|
exportXlsUrl: "/cmmsSpotcheckContent/cmmsSpotcheckContent/exportXls",
|
|
|
importExcelUrl: "cmmsSpotcheckContent/cmmsSpotcheckContent/importExcel",
|
|
|
- edit: "/cmmsSpotcheckContent/cmmsSpotcheckContent/edit",
|
|
|
+ // edit: "/cmmsSpotcheckContent/cmmsSpotcheckContent/edit",
|
|
|
+ edit: "/cmmsSpotcheckContent/cmmsSpotcheckContent/editStatus",
|
|
|
},
|
|
|
dictOptions:{},
|
|
|
superFieldList:[],
|
|
@@ -218,11 +219,12 @@
|
|
|
},
|
|
|
statusChange(record,$event){
|
|
|
console.log(record.status,$event)
|
|
|
- let text = record.status === "0" ? "停用" : "启用";
|
|
|
+ let text1 = record.status === "0" ? "是否确认停用“" : "是否确认开启“";
|
|
|
+ let text2 = record.status === "0" ? "”,请确保该设备有可使用的点检内容" : "”,若启用当前点检内容则该设备其他点检内容默认关闭";
|
|
|
const that = this
|
|
|
that.$confirm({
|
|
|
title: "提示",
|
|
|
- content: "确认要" + text + "该内容吗?",
|
|
|
+ content: text1 + record.contentname + text2,
|
|
|
onOk() {
|
|
|
let httpurl = '';
|
|
|
let method = 'put';
|