|
@@ -128,7 +128,7 @@
|
|
|
import { listContract,changeState,delContract} from "@/api/service/contract/contract";
|
|
|
import ColumnSetting from "../../../components/Table/columnSetting.vue";
|
|
|
import { columnQuery, columnfilter } from "@/api/common/columnSetting";
|
|
|
-
|
|
|
+document.getElementById
|
|
|
export default {
|
|
|
name: "contract",
|
|
|
components: {
|
|
@@ -306,10 +306,26 @@ export default {
|
|
|
},
|
|
|
/** 启用按钮操作 */
|
|
|
handleChange(row) {
|
|
|
- const zfcId = row.zfcId;
|
|
|
- changeState(zfcId).then((response)=>{
|
|
|
- this.getList();
|
|
|
- })
|
|
|
+ let text = row.zfpStatus === "01" ? "开启合同模板名称为" : "停用合同模板名称为";
|
|
|
+ this.$confirm(
|
|
|
+ "确认要" + text + '"' + row.zfcName + '"吗?',
|
|
|
+ "警告",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(function () {
|
|
|
+ return changeState(row.zfcId);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.msgSuccess(text + "成功");
|
|
|
+ })
|
|
|
+ .catch(function () {
|
|
|
+ row.zfpSplit = row.zfpSplit === "00" ? "01" : "00";
|
|
|
+ });
|
|
|
},
|
|
|
//合同模板状态字典反显
|
|
|
statusFormat(row, column) {
|