|
@@ -22,34 +22,34 @@
|
|
<u-radio v-for="se in sexList" :key="se" :activeColor="proxy.$settingStore.themeColor.color" :label="se.text" :name="se.value" style="margin-right: 15px"></u-radio>
|
|
<u-radio v-for="se in sexList" :key="se" :activeColor="proxy.$settingStore.themeColor.color" :label="se.text" :name="se.value" style="margin-right: 15px"></u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="设施地址" prop="address" :borderBottom="true" @click="handleAction('设施地址')" required>
|
|
|
|
- <u-input v-model="form.address" placeholder="请选择设施地址" border="none" disabledColor="transparent" disabled>
|
|
|
|
|
|
+ <u-form-item label="设施地址" prop="address" :borderBottom="true" required>
|
|
|
|
+ <u-input v-model="form.address" placeholder="请选择设施地址" border="none" disabledColor="transparent" disabled @click="handleAction('设施地址')">
|
|
<template #suffix>
|
|
<template #suffix>
|
|
<view class="iconfont ucicon-map menu-icon" style="font-size: 18px; color: #909399"> </view>
|
|
<view class="iconfont ucicon-map menu-icon" style="font-size: 18px; color: #909399"> </view>
|
|
</template>
|
|
</template>
|
|
</u-input>
|
|
</u-input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item label="行政区划" prop="facilityAddress" :borderBottom="true" required>
|
|
<u-form-item label="行政区划" prop="facilityAddress" :borderBottom="true" required>
|
|
- <view>
|
|
|
|
- <u-input v-model="form.address" placeholder="" border="none" disabledColor="transparent" disabled />
|
|
|
|
|
|
+ <view style="width: 100%">
|
|
|
|
+ <view style="font-size: 15px"> {{ form.address ? form.address.split(form.facilityAddress)[0] : "" }}</view>
|
|
<u-input v-model="form.facilityAddress" placeholder="请输入详细地址" border="none" />
|
|
<u-input v-model="form.facilityAddress" placeholder="请输入详细地址" border="none" />
|
|
</view>
|
|
</view>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item v-if="!form.typeGuise == 1" label="类型" prop="gpsAreas" :borderBottom="true" @click="handleAction('类型')" required>
|
|
|
|
- <view>{{ form.typeGuise == 1 ? "点" : form.typeGuise == 2 ? "线" : form.typeGuise == 3 ? "面" : "" }}</view>
|
|
|
|
- <view v-if="!form.gpsAreas" style="margin: auto; color: #ff0000">未编辑</view>
|
|
|
|
- <view v-if="form.gpsAreas" style="margin: auto; color: #30bb00">已编辑</view>
|
|
|
|
|
|
+ <u-form-item v-if="form.typeGuise && form.typeGuise != 1" label="类型" prop="gpsAreas" :borderBottom="true" @click="handleAction('类型')" required>
|
|
|
|
+ <view style="font-size: 15px">{{ form.typeGuise == 1 ? "点" : form.typeGuise == 2 ? "线" : form.typeGuise == 3 ? "面" : "" }}</view>
|
|
|
|
+ <view v-if="form.gpsAreas.length <= 0" style="font-size: 15px; margin: auto; color: #ff0000">未编辑</view>
|
|
|
|
+ <view v-if="form.gpsAreas.length > 0" style="font-size: 15px; margin: auto; color: #30bb00">已编辑</view>
|
|
<view class="iconfont ucicon-bianji1 menu-icon" style="font-size: 14px; color: #909399"> </view>
|
|
<view class="iconfont ucicon-bianji1 menu-icon" style="font-size: 14px; color: #909399"> </view>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="联系人" prop="contact" :borderBottom="true" required>
|
|
|
|
|
|
+ <u-form-item label="联系人" prop="contact" :borderBottom="true">
|
|
<u-input v-model="form.contact" placeholder="请输入联系人" border="none" />
|
|
<u-input v-model="form.contact" placeholder="请输入联系人" border="none" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="联系电话" prop="contactPhone" required :borderBottom="true">
|
|
|
|
|
|
+ <u-form-item label="联系电话" prop="contactPhone" :borderBottom="true">
|
|
<u-input v-model="form.contactPhone" placeholder="请输入联系电话" border="none" maxlength="11" />
|
|
<u-input v-model="form.contactPhone" placeholder="请输入联系电话" border="none" maxlength="11" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="设备图片" prop="imagesUrl" required :borderBottom="true">
|
|
|
|
|
|
+ <u-form-item label="设备图片" prop="imagesUrl" :borderBottom="true">
|
|
<view class="flex flex-wrap">
|
|
<view class="flex flex-wrap">
|
|
- <view class="uploadView" style="width: 110px; margin-bottom: 0px" v-if="form.imagesUrl">
|
|
|
|
|
|
+ <view class="uploadView" style="width: 80px; height: 80px; margin-bottom: 0px" v-if="form.imagesUrl">
|
|
<view class="uploadUimage">
|
|
<view class="uploadUimage">
|
|
<u-image width="100%" height="100%" :src="form.imagesUrl"></u-image>
|
|
<u-image width="100%" height="100%" :src="form.imagesUrl"></u-image>
|
|
</view>
|
|
</view>
|
|
@@ -58,12 +58,12 @@
|
|
<u-icon name="close" color="#ffffff" size="12"></u-icon>
|
|
<u-icon name="close" color="#ffffff" size="12"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view :class="'uploadView upload-buttom'" style="width: 110px; margin-bottom: 0px" v-if="!form.imagesUrl" @click="uploadClick">
|
|
|
|
- <u-icon style="margin: auto" name="plus" color="#909399" size="28"></u-icon>
|
|
|
|
|
|
+ <view :class="'uploadView upload-buttom'" style="width: 80px; height: 80px; margin-bottom: 0px" v-if="!form.imagesUrl" @click="uploadClick">
|
|
|
|
+ <u-icon style="margin: auto" name="plus" color="#909399" size="20"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="备注" prop="facilityDesc" required :borderBottom="true">
|
|
|
|
|
|
+ <u-form-item label="备注" prop="facilityDesc" :borderBottom="true">
|
|
<u-textarea v-model="form.facilityDesc" placeholder="请输入" border="none" maxlength="30" style="padding: 0px"></u-textarea>
|
|
<u-textarea v-model="form.facilityDesc" placeholder="请输入" border="none" maxlength="30" style="padding: 0px"></u-textarea>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
|
|
|
@@ -81,14 +81,24 @@
|
|
></u-radio>
|
|
></u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
|
|
|
|
- <uni-data-select v-if="fo.type === 'XLK'" v-model="fo.value" :placeholder="'请选择' + fo.name" :localdata="fo.list"></uni-data-select>
|
|
|
|
|
|
+ <u-input
|
|
|
|
+ v-if="fo.type === 'XLK'"
|
|
|
|
+ v-model="fo.valueName"
|
|
|
|
+ :placeholder="'请选择' + fo.name"
|
|
|
|
+ suffixIcon="arrow-right"
|
|
|
|
+ suffixIconStyle="color: #909399"
|
|
|
|
+ border="none"
|
|
|
|
+ disabledColor="transparent"
|
|
|
|
+ disabled
|
|
|
|
+ @click="handleAction('属性', fo)"
|
|
|
|
+ />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u--form>
|
|
</u--form>
|
|
|
|
|
|
- <view style="padding-bottom: 140px"> </view>
|
|
|
|
|
|
+ <view style="padding-bottom: 100px"> </view>
|
|
|
|
|
|
<view class="app-button-fixed">
|
|
<view class="app-button-fixed">
|
|
<view class="app-flex">
|
|
<view class="app-flex">
|
|
@@ -156,29 +166,7 @@ const dataList = reactive({
|
|
},
|
|
},
|
|
],
|
|
],
|
|
|
|
|
|
- form: {
|
|
|
|
- department: "", //所属部门
|
|
|
|
- facilityType: "", //设施类型
|
|
|
|
- facilityTypeName: "", //设施类型名称
|
|
|
|
- facilityName: "", //设施名称
|
|
|
|
- status: "0", //设施状态
|
|
|
|
- address: "", //设施地址
|
|
|
|
- longitude: "", //经度
|
|
|
|
- latitude: "", //纬度
|
|
|
|
- province: "", //省
|
|
|
|
- city: "", //市
|
|
|
|
- area: "", //区(县)
|
|
|
|
- facilityAddress: "", //详细地址
|
|
|
|
- streetTown: null, //所属街镇
|
|
|
|
- gpsAreas: "", //经纬度集合
|
|
|
|
- contact: "", //联系人
|
|
|
|
- contactPhone: "", //联系方式
|
|
|
|
- imagesUrl: "", //图⽚地址URL
|
|
|
|
- facilityDesc: "", //备注
|
|
|
|
- extendData: [], //扩展属性
|
|
|
|
- recordPictureList: [],
|
|
|
|
- typeGuise: undefined, //点线面类型
|
|
|
|
- },
|
|
|
|
|
|
+ form: publicStore.$state.facilitiesGatherArray,
|
|
|
|
|
|
rules: {
|
|
rules: {
|
|
department: [
|
|
department: [
|
|
@@ -223,42 +211,42 @@ const dataList = reactive({
|
|
trigger: ["blur", "change"],
|
|
trigger: ["blur", "change"],
|
|
},
|
|
},
|
|
],
|
|
],
|
|
- contact: [
|
|
|
|
- {
|
|
|
|
- required: true,
|
|
|
|
- message: "请输入联系人",
|
|
|
|
- trigger: ["blur", "change"],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- contactPhone: [
|
|
|
|
- {
|
|
|
|
- required: true,
|
|
|
|
- message: "请输入联系人电话",
|
|
|
|
- trigger: ["blur", "change"],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- type: "string",
|
|
|
|
- min: 11,
|
|
|
|
- required: true,
|
|
|
|
- message: "请输入正确11位联系人电话",
|
|
|
|
- pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
|
- trigger: ["blur", "change"],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- imagesUrl: [
|
|
|
|
- {
|
|
|
|
- required: true,
|
|
|
|
- message: "请选择图片",
|
|
|
|
- trigger: ["blur", "change"],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- facilityDesc: [
|
|
|
|
- {
|
|
|
|
- required: true,
|
|
|
|
- message: "请输入备注",
|
|
|
|
- trigger: ["blur", "change"],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ // contact: [
|
|
|
|
+ // {
|
|
|
|
+ // required: true,
|
|
|
|
+ // message: "请输入联系人",
|
|
|
|
+ // trigger: ["blur", "change"],
|
|
|
|
+ // },
|
|
|
|
+ // ],
|
|
|
|
+ // contactPhone: [
|
|
|
|
+ // {
|
|
|
|
+ // required: true,
|
|
|
|
+ // message: "请输入联系人电话",
|
|
|
|
+ // trigger: ["blur", "change"],
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // type: "string",
|
|
|
|
+ // min: 11,
|
|
|
|
+ // required: true,
|
|
|
|
+ // message: "请输入正确11位联系人电话",
|
|
|
|
+ // pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
|
+ // trigger: ["blur", "change"],
|
|
|
|
+ // },
|
|
|
|
+ // ],
|
|
|
|
+ // imagesUrl: [
|
|
|
|
+ // {
|
|
|
|
+ // required: true,
|
|
|
|
+ // message: "请选择图片",
|
|
|
|
+ // trigger: ["blur", "change"],
|
|
|
|
+ // },
|
|
|
|
+ // ],
|
|
|
|
+ // facilityDesc: [
|
|
|
|
+ // {
|
|
|
|
+ // required: true,
|
|
|
|
+ // message: "请输入备注",
|
|
|
|
+ // trigger: ["blur", "change"],
|
|
|
|
+ // },
|
|
|
|
+ // ],
|
|
},
|
|
},
|
|
|
|
|
|
actionIndex: 0,
|
|
actionIndex: 0,
|
|
@@ -274,6 +262,110 @@ const { sexList, form, rules, actionIndex, actionIndex1, actionTitle, actionShow
|
|
const uForm = ref(null);
|
|
const uForm = ref(null);
|
|
const successBool = ref(false);
|
|
const successBool = ref(false);
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * @初始化
|
|
|
|
+ */
|
|
|
|
+function init() {
|
|
|
|
+ typeSelect({ id: "" }).then((requset) => {
|
|
|
|
+ if (requset.status === "SUCCESS") {
|
|
|
|
+ requset.data.forEach((el) => {
|
|
|
|
+ typeSelectList.value[0].push({ name: el.typeName, value: el.id, typeGuise: el.typeGuise, dataField: el.dataField ? JSON.parse(el.dataField) : [] });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ treeselect({}).then((requset) => {
|
|
|
|
+ if (requset.status === "SUCCESS") {
|
|
|
|
+ requset.data.forEach((el) => {
|
|
|
|
+ treeselectList.value[0].push({ name: el.label, value: el.id, children: el.children });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ var data = [
|
|
|
|
+ {
|
|
|
|
+ id: 124,
|
|
|
|
+ label: "公司",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ id: 125,
|
|
|
|
+ label: "it",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ id: 126,
|
|
|
|
+ label: "二组",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 124,
|
|
|
|
+ label: "公司",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ id: 125,
|
|
|
|
+ label: "it1",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ id: 126,
|
|
|
|
+ label: "1组",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 124,
|
|
|
|
+ label: "公司",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ id: 125,
|
|
|
|
+ label: "it2",
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ id: 126,
|
|
|
|
+ label: "3组",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
|
|
+
|
|
|
|
+ data.forEach((el) => {
|
|
|
|
+ treeselectList.value[0].push({ name: el.label, value: el.id, children: el.children });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @清空数据
|
|
|
|
+ */
|
|
|
|
+function wipeData() {
|
|
|
|
+ form.value.department = ""; //所属部门
|
|
|
|
+ form.value.facilityType = ""; //设施类型
|
|
|
|
+ form.value.facilityTypeName = ""; //设施类型名称
|
|
|
|
+ form.value.facilityName = ""; //设施名称
|
|
|
|
+ form.value.status = "0"; //设施状态
|
|
|
|
+ form.value.address = ""; //设施地址
|
|
|
|
+ form.value.longitude = ""; //经度
|
|
|
|
+ form.value.latitude = ""; //纬度
|
|
|
|
+ form.value.province = ""; //省
|
|
|
|
+ form.value.city = ""; //市
|
|
|
|
+ form.value.area = ""; //区(县)
|
|
|
|
+ form.value.facilityAddress = ""; //详细地址
|
|
|
|
+ form.value.streetTown = null; //所属街镇
|
|
|
|
+ form.value.gpsAreas = []; //经纬度集合
|
|
|
|
+ form.value.contact = ""; //联系人
|
|
|
|
+ form.value.contactPhone = ""; //联系方式
|
|
|
|
+ form.value.imagesUrl = ""; //图⽚地址URL
|
|
|
|
+ form.value.facilityDesc = ""; //备注
|
|
|
|
+ form.value.extendData = []; //扩展属性
|
|
|
|
+ form.value.recordPictureList = [];
|
|
|
|
+ form.value.typeGuise = ""; //点线面类型
|
|
|
|
+ form.value.gpsAreas = [];
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @api提交
|
|
* @api提交
|
|
*/
|
|
*/
|
|
@@ -315,13 +407,14 @@ function handleSubmit(type) {
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
proxy.$tab.navigateBack();
|
|
proxy.$tab.navigateBack();
|
|
|
|
+ wipeData();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* @action弹出框点击事件
|
|
* @action弹出框点击事件
|
|
*/
|
|
*/
|
|
-function handleAction(value, index, index1) {
|
|
|
|
|
|
+function handleAction(value, array) {
|
|
actionsList.value = [[]];
|
|
actionsList.value = [[]];
|
|
|
|
|
|
if (value == "所属部门") {
|
|
if (value == "所属部门") {
|
|
@@ -347,14 +440,33 @@ function handleAction(value, index, index1) {
|
|
}
|
|
}
|
|
|
|
|
|
if (value == "设施地址") {
|
|
if (value == "设施地址") {
|
|
|
|
+ publicStore.$state.facilitiesGatherType = "点";
|
|
proxy.$tab.navigateTo("/pages/business/fireIot/facilitiesGather/mapGather");
|
|
proxy.$tab.navigateTo("/pages/business/fireIot/facilitiesGather/mapGather");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
if (value == "类型") {
|
|
if (value == "类型") {
|
|
|
|
+ if (form.value.typeGuise === 2) {
|
|
|
|
+ publicStore.$state.facilitiesGatherType = "线";
|
|
|
|
+ } else if (form.value.typeGuise === 3) {
|
|
|
|
+ publicStore.$state.facilitiesGatherType = "面";
|
|
|
|
+ }
|
|
|
|
+ proxy.$tab.navigateTo("/pages/business/fireIot/facilitiesGather/mapGather");
|
|
|
|
+
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (value == "属性") {
|
|
|
|
+ actionTitle.value = array.name;
|
|
|
|
+ actionsList.value = [array.list];
|
|
|
|
+
|
|
|
|
+ array.list.forEach((el, ind) => {
|
|
|
|
+ if (el.value === array.value) {
|
|
|
|
+ actionDefaultIndex.value = ind;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
actionShow.value = true;
|
|
actionShow.value = true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -365,6 +477,8 @@ function selectAction(e) {
|
|
console.log(e);
|
|
console.log(e);
|
|
|
|
|
|
if (actionTitle.value == "设施类型") {
|
|
if (actionTitle.value == "设施类型") {
|
|
|
|
+ wipeData();
|
|
|
|
+
|
|
form.value.facilityType = e.value[0].value;
|
|
form.value.facilityType = e.value[0].value;
|
|
form.value.facilityTypeName = e.value[0].name;
|
|
form.value.facilityTypeName = e.value[0].name;
|
|
form.value.typeGuise = e.value[0].typeGuise;
|
|
form.value.typeGuise = e.value[0].typeGuise;
|
|
@@ -373,11 +487,12 @@ function selectAction(e) {
|
|
form.value.extendData = e.value[0].dataField;
|
|
form.value.extendData = e.value[0].dataField;
|
|
|
|
|
|
form.value.extendData.forEach((el) => {
|
|
form.value.extendData.forEach((el) => {
|
|
|
|
+ el.valueName = "";
|
|
if (el.type === "XLK") {
|
|
if (el.type === "XLK") {
|
|
if (el.list) {
|
|
if (el.list) {
|
|
el.list.forEach((e) => {
|
|
el.list.forEach((e) => {
|
|
|
|
+ e.name = e.attributeValue;
|
|
e.value = e.attributeCode;
|
|
e.value = e.attributeCode;
|
|
- e.text = e.attributeValue;
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -387,6 +502,15 @@ function selectAction(e) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (actionTitle.value.indexOf("属性") != -1) {
|
|
|
|
+ form.value.extendData.forEach((el) => {
|
|
|
|
+ if (el.type === "XLK") {
|
|
|
|
+ el.valueName = e.value[0].name;
|
|
|
|
+ el.value = e.value[0].value;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
// if (actionTitle.value == "灭火器") {
|
|
// if (actionTitle.value == "灭火器") {
|
|
// form.value.baseBuildList[actionIndex.value].baseBuildExtinguishList[actionIndex1.value].extinguishType = e.value[0].name;
|
|
// form.value.baseBuildList[actionIndex.value].baseBuildExtinguishList[actionIndex1.value].extinguishType = e.value[0].name;
|
|
// form.value.baseBuildList[actionIndex.value].baseBuildExtinguishList[actionIndex1.value].extinguishTypeValue = e.value[0].value;
|
|
// form.value.baseBuildList[actionIndex.value].baseBuildExtinguishList[actionIndex1.value].extinguishTypeValue = e.value[0].value;
|
|
@@ -410,11 +534,13 @@ function changeHandler(e) {
|
|
} = e;
|
|
} = e;
|
|
// 当第一列值发生变化时,变化第二列(后一列)对应的选项
|
|
// 当第一列值发生变化时,变化第二列(后一列)对应的选项
|
|
|
|
|
|
- console.log(columnIndex, index);
|
|
|
|
|
|
+ if (actionTitle.value == "所属部门") {
|
|
|
|
+ console.log(columnIndex, index);
|
|
|
|
|
|
- if (columnIndex === 0) {
|
|
|
|
- // picker为选择器this实例,变化第二列对应的选项
|
|
|
|
- picker.setColumnValues(1, columnData[index]);
|
|
|
|
|
|
+ if (columnIndex === 0) {
|
|
|
|
+ // picker为选择器this实例,变化第二列对应的选项
|
|
|
|
+ picker.setColumnValues(1, columnData[index]);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -455,80 +581,7 @@ function uploadViewClose(el) {
|
|
}
|
|
}
|
|
|
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
- form.value.baseBuildList = [];
|
|
|
|
- rules.value.baseBuildList = [];
|
|
|
|
-
|
|
|
|
- typeSelect({ id: "" }).then((requset) => {
|
|
|
|
- if (requset.status === "SUCCESS") {
|
|
|
|
- requset.data.forEach((el) => {
|
|
|
|
- typeSelectList.value[0].push({ name: el.typeName, value: el.id, typeGuise: el.typeGuise, dataField: el.dataField ? JSON.parse(el.dataField) : [] });
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- treeselect({}).then((requset) => {
|
|
|
|
- if (requset.status === "SUCCESS") {
|
|
|
|
- console.log(requset.data);
|
|
|
|
- requset.data.forEach((el) => {
|
|
|
|
- treeselectList.value[0].push({ name: el.label, value: el.id, children: el.children });
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- var data = [
|
|
|
|
- {
|
|
|
|
- id: 124,
|
|
|
|
- label: "公司",
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- id: 125,
|
|
|
|
- label: "it",
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- id: 126,
|
|
|
|
- label: "二组",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: 124,
|
|
|
|
- label: "公司",
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- id: 125,
|
|
|
|
- label: "it1",
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- id: 126,
|
|
|
|
- label: "1组",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: 124,
|
|
|
|
- label: "公司",
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- id: 125,
|
|
|
|
- label: "it2",
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- id: 126,
|
|
|
|
- label: "3组",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- ];
|
|
|
|
-
|
|
|
|
- data.forEach((el) => {
|
|
|
|
- treeselectList.value[0].push({ name: el.label, value: el.id, children: el.children });
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ init();
|
|
});
|
|
});
|
|
|
|
|
|
onShow(() => {
|
|
onShow(() => {
|