Commit fda5320f by 冒粤蓉

fix

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