Commit 9c1797b9 authored by 谢子梦's avatar 谢子梦

发薪合同操作-缓存问题

parent f6c1e1af
...@@ -33,10 +33,7 @@ ...@@ -33,10 +33,7 @@
<el-col :span="10"> <el-col :span="10">
<el-form-item label="发薪主体"> <el-form-item label="发薪主体">
<el-select v-model="formData.payerCompanyId" clearable placeholder="请选择发薪主体"> <el-select v-model="formData.payerCompanyId" clearable placeholder="请选择发薪主体">
<el-option <el-option v-for="item in payerCompanyArr" :key="item.id" :label="item.companyName"
v-for="item in payerCompanyArr"
:key="item.id"
:label="item.companyName"
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
...@@ -441,15 +438,20 @@ export default { ...@@ -441,15 +438,20 @@ export default {
created() { created() {
}, },
updated() { watch: {
// this.reset() '$route.query.id'(newValue, oldValue) {
}, if (newValue) {
mounted() { this.getOutContractFN(newValue)
if (this.$route.query.id) {
this.getOutContractFN(this.$route.query.id)
} else { } else {
this.reset() this.reset()
} }
}
},
mounted() {
// if (this.$route.query.id) {
// this.getOutContractFN(this.$route.query.id)
// } else {
// }
this.getPayerCompanyList() this.getPayerCompanyList()
}, },
methods: { methods: {
......
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