|
|
@@ -67,7 +67,8 @@
|
|
|
<el-input
|
|
|
class="input"
|
|
|
v-model="form.iotSubstanceCode"
|
|
|
- ></el-input></el-form-item>
|
|
|
+ ></el-input
|
|
|
+ ></el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div class="basic-details-title border-none">
|
|
|
@@ -182,7 +183,7 @@
|
|
|
form: {
|
|
|
extInfoSelf: [],
|
|
|
// 基本信息
|
|
|
- iotSubstanceCode: '',
|
|
|
+ iotSubstanceCode: '',
|
|
|
iotProductKey: '',
|
|
|
code: '',
|
|
|
name: '',
|
|
|
@@ -313,9 +314,8 @@
|
|
|
this.form = data;
|
|
|
this.form.category = res;
|
|
|
this.basicInfo = data;
|
|
|
- this.form.rootCategoryLevelId = this.basicInfo.categoryLevelPathId
|
|
|
- .split(',')[0]
|
|
|
- .replace('[', '');
|
|
|
+ this.form.rootCategoryLevelId =
|
|
|
+ this.basicInfo.categoryLevelPathIdParent;
|
|
|
this.form.categoryId = this.basicInfo.id;
|
|
|
this.form.name = this.basicInfo.name;
|
|
|
this.form.code = data.code; //Date.now(); //res.data[0].onlyCode;
|
|
|
@@ -369,14 +369,14 @@
|
|
|
}
|
|
|
this.$refs.form.validate(async (valid) => {
|
|
|
if (valid) {
|
|
|
- if(!this.form.areaPersonInChargeGroupId){
|
|
|
+ if (!this.form.areaPersonInChargeGroupId) {
|
|
|
this.$message.error('请选片区负责人部门');
|
|
|
- return
|
|
|
- }
|
|
|
- if(!this.form.areaPersonInChargeUserId){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (!this.form.areaPersonInChargeUserId) {
|
|
|
this.$message.error('请选片区负责人');
|
|
|
- return
|
|
|
- }
|
|
|
+ return;
|
|
|
+ }
|
|
|
let par = {
|
|
|
//基本信息
|
|
|
...this.form,
|