|
@@ -37,15 +37,15 @@
|
|
|
placeholder="请选择组织"></el-cascader>
|
|
placeholder="请选择组织"></el-cascader>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item label="描述">
|
|
<el-form-item label="描述">
|
|
|
<el-input v-model="testlistform.Describe" type="textarea" :rows=2 placeholder="默认值"></el-input>
|
|
<el-input v-model="testlistform.Describe" type="textarea" :rows=2 placeholder="默认值"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<el-row>
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
@@ -85,16 +85,16 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="套餐项目" >
|
|
<el-form-item label="套餐项目" >
|
|
|
<div style="border: 1px solid rgb(204, 204, 204); overflow: auto; height: 400px;" label-width="130px">
|
|
<div style="border: 1px solid rgb(204, 204, 204); overflow: auto; height: 400px;" label-width="130px">
|
|
|
- <el-checkbox-group :indeterminate="isIndeterminate" v-model="selectdevices" >
|
|
|
|
|
|
|
+ <el-checkbox-group :indeterminate="isIndeterminate" v-model="selectdevices" >
|
|
|
<el-checkbox v-for="v in selectdevices" style="margin-left:8px;margin-top:5px" :label="v" :key="v">{{v.split(',')[1]}}</el-checkbox>
|
|
<el-checkbox v-for="v in selectdevices" style="margin-left:8px;margin-top:5px" :label="v" :key="v">{{v.split(',')[1]}}</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -173,7 +173,7 @@
|
|
|
this.testlistform.CategoryId = this.selectedorg[this.selectedorg.length - 1]
|
|
this.testlistform.CategoryId = this.selectedorg[this.selectedorg.length - 1]
|
|
|
this.testlistform.CategoryName = this.$refs.labselect.currentLabels[this.$refs.labselect.currentLabels.length - 1]
|
|
this.testlistform.CategoryName = this.$refs.labselect.currentLabels[this.$refs.labselect.currentLabels.length - 1]
|
|
|
this.testlistform.itemlist = this.selectdevices
|
|
this.testlistform.itemlist = this.selectdevices
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
_this.$axios.post('inspection/packagesettingadd/', _this.testlistform)
|
|
_this.$axios.post('inspection/packagesettingadd/', _this.testlistform)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
// response
|
|
// response
|
|
@@ -210,10 +210,7 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- handleCheckAllChange(val) {
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ handleCheckAllChange (val) {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.selectdevices = []
|
|
_this.selectdevices = []
|
|
|
if (val) {
|
|
if (val) {
|
|
@@ -221,17 +218,17 @@
|
|
|
_this.selectdevices.push(item.Id + ','+item.ItemName)
|
|
_this.selectdevices.push(item.Id + ','+item.ItemName)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.isIndeterminate = false
|
|
this.isIndeterminate = false
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
handleCheckeddeviceChange() {
|
|
handleCheckeddeviceChange() {
|
|
|
let checkedCount = this.selectdevices.length
|
|
let checkedCount = this.selectdevices.length
|
|
|
this.checkAll = checkedCount === this.devicelist.length
|
|
this.checkAll = checkedCount === this.devicelist.length
|
|
|
this.isIndeterminate = checkedCount > 0 && checkedCount < this.devicelist.length
|
|
this.isIndeterminate = checkedCount > 0 && checkedCount < this.devicelist.length
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
this.pasges()
|
|
this.pasges()
|
|
|
|
|
|
|
|
},
|
|
},
|