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

发薪合同操作-缓存问题

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