Browse Source

Merge remote-tracking branch 'origin/dev-tuceng0616' into dev-tuceng0616

shibei_master
zxc 3 years ago
parent
commit
52f3066d1e
  1. 6
      src/views/modules/cpts/base/cpts/edit.vue
  2. 8
      src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue
  3. 8
      src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue

6
src/views/modules/cpts/base/cpts/edit.vue

@ -570,15 +570,13 @@ export default {
...this.fmData, ...this.fmData,
...data, ...data,
}; };
console.log("------------------------------------info", this.fmData);
await nextTick(800); await nextTick(600);
if (map) { if (map) {
if (data.latitude) { if (data.latitude) {
map.setCenter(new TMap.LatLng(data.latitude, data.longitude)); map.setCenter(new TMap.LatLng(data.latitude, data.longitude));
} else { } else {
if (this.$refs && this.$refs.mapSearch) { if (this.formType == "edit" && this.$refs && this.$refs.mapSearch) {
console.log(this.$refs.mapSearch[0].handleClick);
this.$refs.mapSearch[0].handleClick(); this.$refs.mapSearch[0].handleClick();
} }
} }

8
src/views/modules/shequzhili/tuceng/anquan/weihua/index.vue

@ -7,6 +7,8 @@
:addUrl="addUrl" :addUrl="addUrl"
:editUrl="editUrl" :editUrl="editUrl"
:delUrl="delUrl" :delUrl="delUrl"
:editAuth="editAuth"
:delAuth="delAuth"
:infoUrl="infoUrl" :infoUrl="infoUrl"
:exportUrl="exportUrl" :exportUrl="exportUrl"
:importUrl="importUrl" :importUrl="importUrl"
@ -69,6 +71,12 @@ export default {
editUrl: "/gov/org/icDangerousChemicals/edit", editUrl: "/gov/org/icDangerousChemicals/edit",
infoUrl: "/gov/org/icDangerousChemicals/detail", infoUrl: "/gov/org/icDangerousChemicals/detail",
delUrl: "/gov/org/icDangerousChemicals/del", delUrl: "/gov/org/icDangerousChemicals/del",
editAuth(item) {
return item.agencyId == this.$store.state.user.agencyId;
},
delAuth(item) {
return item.agencyId == this.$store.state.user.agencyId;
},
editParams: [ editParams: [
{ {

8
src/views/modules/shequzhili/tuceng/yingji/ziyuan/index.vue

@ -7,6 +7,8 @@
:addUrl="addUrl" :addUrl="addUrl"
:editUrl="editUrl" :editUrl="editUrl"
:delUrl="delUrl" :delUrl="delUrl"
:editAuth="editAuth"
:delAuth="delAuth"
:infoUrl="infoUrl" :infoUrl="infoUrl"
:exportUrl="exportUrl" :exportUrl="exportUrl"
:importUrl="importUrl" :importUrl="importUrl"
@ -56,6 +58,12 @@ export default {
editUrl: "/gov/org/icSuperiorResource/edit", editUrl: "/gov/org/icSuperiorResource/edit",
infoUrl: "/gov/org/icSuperiorResource/detail", infoUrl: "/gov/org/icSuperiorResource/detail",
delUrl: "/gov/org/icSuperiorResource/del", delUrl: "/gov/org/icSuperiorResource/del",
editAuth(item) {
return item.agencyId == this.$store.state.user.agencyId;
},
delAuth(item) {
return item.agencyId == this.$store.state.user.agencyId;
},
editParams: [ editParams: [
{ {

Loading…
Cancel
Save