Lou
2024-03-11 2e538234c41423e46e844e55455a0402c7e33979
场所管理修改
3 files modified
1 files added
58 ■■■■ changed files
src/api/place/place.js 11 ●●●●● patch | view | raw | blame | history
src/views/place/components/baseAllInfo.vue 43 ●●●● patch | view | raw | blame | history
src/views/place/mallList.vue patch | view | raw | blame | history
vue.config.js 4 ●●●● patch | view | raw | blame | history
src/api/place/place.js
@@ -86,6 +86,17 @@
  });
};
export const getPlaceDetaill = (houseCode) => {
  return request({
    url: "/api/blade-place/place/getDetail",
    method: "get",
    params: {
      houseCode,
    },
  });
};
export const getPlaceExt = (params) => {
  return request({
    url: "/api/blade-placeExt/placeExt/getDetail",
src/views/place/components/baseAllInfo.vue
@@ -28,7 +28,7 @@
<script>
  import {
    getPlace,
  getPlaceDetaill,
    getPlaceExt,
    holdRemove,
    holdAdd,
@@ -318,6 +318,7 @@
              dataType: "string",
              span: 12,
              value: [117.96646, 28.431002, ""],
          cascader: ['houseCodeBinds'],
              rules: [{
                required: true,
                message: "请选择地址",
@@ -327,16 +328,27 @@
            {
              width: 160,
              overHidden: true,
          display:false,
          hide:true,
          label: "地址",
          prop: "addressName",
          span: 12
        },
        {
          width: 160,
          overHidden: true,
              slot: true,
              label: "标准地址",
              prop: "houseCodeBinds",
              span: 24,
              type: 'select',
              dataType: "string",
          type: 'tree',
          dataType: "object",
              remote: true,
              multiple: true,
              hide: true,
              dicUrl: `/api/blade-doorplateAddress/doorplateAddress/getPlaceList?addressName={{key}}`,
          display: false,
          dicUrl: `/api/blade-doorplateAddress/doorplateAddress/getPlaceList?addressName={{addressName}}`,
              props: {
                label: 'addressName',
                value: 'addressCode',
@@ -481,6 +493,13 @@
    inject: ["placeElement"],
    watch: {
    'form.houseBindList':{
      handler(newData){
        console.log("=======>",newData)
      }
    },
      'form.isNine': {
        handler(newData) {
          if (newData) {
@@ -511,11 +530,23 @@
              frontTypeColumn.display = false
            }
          }
      }
        },
    'form.addressName': {
      handler(newData) {
        console.log("111111")
        const column = this.findObject(this.option.column, "houseCodeBinds")
        if (newData) {
          column.display = true;
        } else {
          column.display = false
        }
      }
      }
    },
    methods: {
      initOpen(newData) {
      console.log("item==>", newData);
        this.curRow = newData
        this.roleBox = true
        this.baseShow = false
@@ -526,13 +557,13 @@
        const that = this
        that.$axios
          .all([getPlace(newData["id"]), getPlaceExt({
        .all([getPlaceDetaill(newData["houseCode"]), getPlaceExt({
            placeId: newData["id"]
          }), getPlaceList()])
          .then(
            that.$axios.spread(function(baseInfo, restInfo) {
              that.form = baseInfo.data.data
            that.form.addressName = that.form.location;
              that.form.location = [
                that.form.lng,
                that.form.lat,
src/views/place/mallList.vue
vue.config.js
@@ -38,8 +38,8 @@
        proxy: {
            "/api": {
                //本地服务接口地址
                // target:"http://192.168.2.140:9528",
                target: "https://srgdjczzxtpt.com:2080/api",
                target:"http://192.168.2.140:9528",
                // target: "https://srgdjczzxtpt.com:2080/api",
                // target: "https://kt39592615.goho.co",
                // target: "http://z4042833u6.wicp.vip",
                // target: "http://localhost:9528",