| | |
| | | <div class="cur-container-box"> |
| | | <div class="content-box"> |
| | | <box-title class="m10" :classVal="9" :title="'基本信息'"></box-title> |
| | | <avue-form v-if="baseShow" ref="baseForm" :option="option" v-model="form"></avue-form> |
| | | <avue-form v-if="baseShow" ref="baseForm" :option="option" v-model="form"> |
| | | </avue-form> |
| | | |
| | | <box-title class="m10" :classVal="9" :title="'其他信息'"></box-title> |
| | | <avue-form v-if="restShow" ref="restForm" :option="optionDetail" v-model="placeForm"></avue-form> |
| | |
| | | update, |
| | | updatePlaceExt, |
| | | } from "@/api/place/place" |
| | | |
| | | import { getPlaceList } from "@/api/doorplateAddress/doorplateAddress" |
| | | import website from "@/config/website" |
| | | |
| | | import boxTitle from "./boxTitle" |
| | |
| | | ], |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | label: "负责人", |
| | |
| | | value: 2, |
| | | } |
| | | ], |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择九小分类", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | hide: true, |
| | | }, |
| | | { |
| | |
| | | label: "九小分类", |
| | | prop: "nineType", |
| | | type: "select", |
| | | display:false, |
| | | display: false, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=nineType", |
| | | dataType: "number", |
| | | hide: true, |
| | |
| | | } |
| | | ], |
| | | hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择阵地", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | span: 12, |
| | | label: "阵地类型", |
| | | prop: "frontType", |
| | | type: "select", |
| | | display:false, |
| | | display: false, |
| | | row: true, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=frontType", |
| | | dataType: "number", |
| | |
| | | label: "dictValue", |
| | | value: "dictKey", |
| | | }, |
| | | |
| | | }, |
| | | { |
| | | label: "场所照片", |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // width: 160, |
| | | // overHidden: true, |
| | | // slot: true, |
| | | // label: "标准地址", |
| | | // prop: "houseCodeBinds", |
| | | // span: 24, |
| | | // type: 'select', |
| | | // dataType:"string", |
| | | // remote: true, |
| | | // multiple: true, |
| | | // hide: true, |
| | | // dicUrl: `/api/blade-doorplateAddress/doorplateAddress/getPlaceList?addressName={{key}}`, |
| | | // props: { |
| | | // label: 'addressName', |
| | | // value: 'addressCode', |
| | | // }, |
| | | // dicData: [], |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请选择地址", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // }, |
| | | { |
| | | label: "备注", |
| | | prop: "remark", |
| | | type: 'textarea', |
| | | hide:true, |
| | | hide: true, |
| | | span: 24, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | required: false, |
| | | message: "请输入场所备注", |
| | | trigger: "blur", |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | initOpen(newData) { |
| | |
| | | const that = this |
| | | |
| | | that.$axios |
| | | .all([getPlace(newData["id"]), getPlaceExt({ placeId: newData["id"] })]) |
| | | .all([getPlace(newData["id"]), getPlaceExt({ placeId: newData["id"] }), getPlaceList()]) |
| | | .then( |
| | | that.$axios.spread(function (baseInfo, restInfo) { |
| | | that.form = baseInfo.data.data |
| | |
| | | } |
| | | |
| | | that.baseShow = true |
| | | |
| | | const data = restInfo.data.data |
| | | |
| | | if (data) { |
| | |
| | | }, |
| | | |
| | | desposeImage(data) { |
| | | if (data.length > 0) { |
| | | var urls = [] |
| | | var split = data.split(",").filter((item) => item != "") |
| | | split.forEach((url) => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | data = urls.join(",") |
| | | if (data) { |
| | | if (data.length > 0) { |
| | | var urls = [] |
| | | var split = data.split(",").filter((item) => item != "") |
| | | split.forEach((url) => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | data = urls.join(",") |
| | | } |
| | | } |
| | | |
| | | return data |
| | | }, |
| | | |