Commit 43fbaadb by 无尘

fix: 修改跳转

parent 1d1b18fa
.task-set-content[data-v-27fb9793]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-27fb9793]{width:105px}.task-set-content .w-120[data-v-27fb9793]{width:120px}.task-set-content .w-161[data-v-27fb9793]{width:161px}.task-set-content .m-b-15[data-v-27fb9793]{margin-bottom:15px}.task-set-content .p-l-8[data-v-27fb9793]{padding-left:8px}.task-set-content .p-l-18[data-v-27fb9793]{padding-left:18px}.task-set-content .p-l-24[data-v-27fb9793]{padding-left:24px}.task-set-content .p-l-175[data-v-27fb9793]{padding-left:175px}.task-set-content .color-1890ff[data-v-27fb9793]{color:#2f54eb}.task-set-content .color-f5222d[data-v-27fb9793]{color:#f5222d}.task-set-content .colorFirst[data-v-27fb9793]{color:#303133;font-weight:600}
\ No newline at end of file
.task-set-content[data-v-7f377364]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-7f377364]{width:105px}.task-set-content .w-120[data-v-7f377364]{width:120px}.task-set-content .w-161[data-v-7f377364]{width:161px}.task-set-content .m-b-15[data-v-7f377364]{margin-bottom:15px}.task-set-content .p-l-8[data-v-7f377364]{padding-left:8px}.task-set-content .p-l-18[data-v-7f377364]{padding-left:18px}.task-set-content .p-l-24[data-v-7f377364]{padding-left:24px}.task-set-content .p-l-175[data-v-7f377364]{padding-left:175px}.task-set-content .color-1890ff[data-v-7f377364]{color:#2f54eb}.task-set-content .color-f5222d[data-v-7f377364]{color:#f5222d}.task-set-content .colorFirst[data-v-7f377364]{color:#303133;font-weight:600}
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:48:40
* @LastEditors: 无尘
* @LastEditTime: 2020-11-25 14:56:38
* @LastEditTime: 2020-11-25 15:04:35
-->
<template>
<div class="common-app-right">
......@@ -53,15 +53,15 @@
</el-table>
</div>
<div class="task-set-save m-t-30">
<el-button v-if="clerkObj.settingAble == 1" :disabled="!equalFlag ? true : false" type="primary" @click="saveSet">确认</el-button>
<el-button v-if="clerkObj.settingAble == 1" :disabled="!equalFlag ? true : false" :loading="loadSave" type="primary" @click="saveSet">确认</el-button>
</div>
</div>
</div>
</template>
<script>
import { _debounce, checkDisEdit } from '@/common/js/public';
import errMsg from '@/common/js/error';
import showMsg from '@/common/js/showmsg';
// import errMsg from '@/common/js/error';
// import showMsg from '@/common/js/showmsg';
import fetch from '@/api/target-manage-app.js';
const { changeStorePerformanceClerk, getStorePerformanceClerk } = fetch;
export default {
......@@ -88,6 +88,7 @@ export default {
settingAble: 1,
storePerformance: 0
},
loadSave: false,
equalFlag: false, // 相等标志
disableSetting: false // 是否禁用设置(false:不禁用设置,true:禁用设置)
};
......@@ -175,6 +176,7 @@ export default {
}, 500),
postSave() {
const that = this;
that.loadSave = true;
const para = {
enterpriseId: that.brandId,
storeInfoId: that.clerkObj.storeInfoId,
......@@ -185,18 +187,16 @@ export default {
};
changeStorePerformanceClerk(para)
.then(res => {
that.loadSave = false;
if (res.code == '0000') {
showMsg.showmsg('保存成功', 'success');
that.$message.success('保存成功');
that.$router.go(-1);
return;
}
errMsg.errorMsg(res);
that.$message.error(res.message || '接口异常');
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
that.loadSave = false;
});
},
/**
......@@ -230,13 +230,9 @@ export default {
that.diffData();
return;
}
errMsg.errorMsg(res);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment