Commit fda5320f by 冒粤蓉

fix

1 parent 0c68ad61
...@@ -72,7 +72,8 @@ export default { ...@@ -72,7 +72,8 @@ export default {
this.$root.parentRouter.push(path); this.$root.parentRouter.push(path);
} }
}, },
created() { mounted() {
} }
} }
</script> </script>
......
...@@ -288,6 +288,7 @@ export default { ...@@ -288,6 +288,7 @@ export default {
this.data = data[this.tableParams.listName] this.data = data[this.tableParams.listName]
this.total = data.totalElements this.total = data.totalElements
this.loading = false this.loading = false
this.$emit('dataFinished');
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
}) })
......
...@@ -34,7 +34,8 @@ function render({ data = {} , container } = {}) { ...@@ -34,7 +34,8 @@ function render({ data = {} , container } = {}) {
data(){ data(){
return { return {
parentRouter: data.router, parentRouter: data.router,
parentVuex: data.store parentVuex: data.store,
parentCommon: data.common
} }
}, },
render: h => h(App), render: h => h(App),
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<el-form-item class="special-shop-input" label="特约店名称:" prop="specialShop"> <el-form-item class="special-shop-input" label="特约店名称:" prop="specialShop">
<el-cascader <el-cascader
ref="specialShopCascader" ref="specialShopCascader"
v-model="form.specialShopId" v-model="form.specialShopName"
:value="form.specialShopName" :value="form.specialShopName"
placeholder="请选择特约店名称" placeholder="请选择特约店名称"
:options="specialShopOptions" :options="specialShopOptions"
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</el-form-item> </el-form-item>
<el-form-item label="特约店编码:"> <el-form-item label="特约店编码:">
<el-input <el-input
v-model="form.specialShopId" v-model="form.specialShopCode"
:size="btn_size" :size="btn_size"
readonly readonly
disabled disabled
...@@ -346,8 +346,8 @@ export default { ...@@ -346,8 +346,8 @@ export default {
// 特约店级联选项 // 特约店级联选项
if(val && val.length > 1) { if(val && val.length > 1) {
const thisNodes = this.$refs['specialShopCascader'].getCheckedNodes()[0]; const thisNodes = this.$refs['specialShopCascader'].getCheckedNodes()[0];
this.form.specialShopId = val[1]; this.form.specialShopId = thisNodes.data.id;
this.form.specialShopName = thisNodes.label; this.form.specialShopCode = thisNodes.data.code;
} }
}, },
updateFence(){ updateFence(){
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
:tableParams="shopTableParams" :tableParams="shopTableParams"
:getListApi="getListApi" :getListApi="getListApi"
:searchForm="searchForm" :searchForm="searchForm"
@dataFinished="tableDataFinished"
:hasNum="false" :hasNum="false"
> >
<span <span
...@@ -211,6 +212,11 @@ export default { ...@@ -211,6 +212,11 @@ export default {
}) })
}, },
methods: { methods: {
tableDataFinished() {
this.$nextTick(() => {
this.$root.parentCommon.setAuthBtn();
})
},
refresh() { refresh() {
this.searchForm = {} this.searchForm = {}
this.$refs.shopTable.refreshTable() this.$refs.shopTable.refreshTable()
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
:getListApi="getListApi" :getListApi="getListApi"
:searchForm="searchForm" :searchForm="searchForm"
:hasNum="false" :hasNum="false"
@dataFinished="tableDataFinished"
> >
<span <span
slot="status" slot="status"
...@@ -48,13 +49,13 @@ ...@@ -48,13 +49,13 @@
> >
<template v-for="(j, idx) in testDriveTableParams.tableOption.btnList"> <template v-for="(j, idx) in testDriveTableParams.tableOption.btnList">
<!-- approvalStatus为1也就是未审核状态展示全部按钮 --> <!-- approvalStatus为1也就是未审核状态展示全部按钮 -->
<template v-if="scope.scope.approvalStatus == 1"> <template v-if="scope.scope.approvalStatus == 1 && j.remark !== 'viewOrigin'">
<el-button <el-button
:key="idx" :key="idx"
:type="j.type || 'text'" :type="j.type || 'text'"
size="mini" size="mini"
plain plain
@click="btnClick(j.pType, scope.scope)" @click="btnClick(j.pType, scope.scope, j.remark)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</template> </template>
<template v-if="(j.pType !== 'pass' && j.pType !== 'reject') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 2"> <template v-if="(j.pType !== 'pass' && j.pType !== 'reject') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 2">
...@@ -63,17 +64,17 @@ ...@@ -63,17 +64,17 @@
:type="j.type || 'text'" :type="j.type || 'text'"
size="mini" size="mini"
plain plain
@click="btnClick(j.pType, scope.scope)" @click="btnClick(j.pType, scope.scope, j.remark)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</template> </template>
<!-- isAdd => 1: 只展示查看原围栏 2: 展示查看原围栏和修改后的围栏 --> <!-- isAdd => 1: 只展示查看原围栏 2: 展示查看原围栏和修改后的围栏 -->
<template v-if="(j.remark == 'viewOrigin') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 1"> <template v-if="(j.remark == 'viewUpdated') && scope.scope.approvalStatus != 1 && scope.scope.isAdd == 1">
<el-button <el-button
:key="idx" :key="idx"
:type="j.type || 'text'" :type="j.type || 'text'"
size="mini" size="mini"
plain plain
@click="btnClick(j.pType, scope.scope)" @click="btnClick(j.pType, scope.scope, j.remark)"
>{{j.name}}</el-button> >{{j.name}}</el-button>
</template> </template>
</template> </template>
...@@ -200,7 +201,12 @@ export default { ...@@ -200,7 +201,12 @@ export default {
} }
}, },
methods: { methods: {
btnClick(pType, scope) { tableDataFinished() {
this.$nextTick(() => {
this.$root.parentCommon.setAuthBtn();
})
},
btnClick(pType, scope, remark) {
const { approvalId } = scope; const { approvalId } = scope;
this.approvalParams.id = approvalId; this.approvalParams.id = approvalId;
switch (pType) { switch (pType) {
...@@ -215,7 +221,8 @@ export default { ...@@ -215,7 +221,8 @@ export default {
break break
case 'view': case 'view':
let query = { let query = {
fenceId: scope.bizId, fenceId: remark === 'viewUpdated' ?scope.bizId :scope.fenceId,
btnRemark: remark,
readonlyStatus: true readonlyStatus: true
}; };
const path = '/oEshield#/monitor/editFence'; const path = '/oEshield#/monitor/editFence';
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
:tableParams="vehicleTableParams" :tableParams="vehicleTableParams"
:getListApi="getListApi" :getListApi="getListApi"
:searchForm="searchForm" :searchForm="searchForm"
@dataFinished="tableDataFinished"
:hasNum="false" :hasNum="false"
> >
<span <span
...@@ -370,6 +371,11 @@ export default { ...@@ -370,6 +371,11 @@ export default {
}, },
methods: { methods: {
tableDataFinished() {
this.$nextTick(() => {
this.$root.parentCommon.setAuthBtn();
})
},
refresh() { refresh() {
this.searchForm = {} this.searchForm = {}
this.$refs.vehicleForm.refreshTable() this.$refs.vehicleForm.refreshTable()
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
:tableParams="checkTableParams" :tableParams="checkTableParams"
:getListApi="getListApi" :getListApi="getListApi"
:searchForm="searchForm" :searchForm="searchForm"
@dataFinished="tableDataFinished"
:hasNum="false" :hasNum="false"
> >
<span <span
...@@ -192,6 +193,11 @@ export default { ...@@ -192,6 +193,11 @@ export default {
}) })
}, },
methods: { methods: {
tableDataFinished() {
this.$nextTick(() => {
this.$root.parentCommon.setAuthBtn();
})
},
refresh() { refresh() {
this.searchForm = {} this.searchForm = {}
this.$refs.vehicleCheckTable.refreshTable() this.$refs.vehicleCheckTable.refreshTable()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!