|
@@ -111,8 +111,17 @@
|
|
|
placement="bottom"
|
|
|
trigger="click"
|
|
|
:disabled="eduType ? false : true"
|
|
|
- >
|
|
|
- <el-checkbox-group v-model="cauType" class="checkboxSty">
|
|
|
+ ><el-checkbox
|
|
|
+ v-model="checkAll"
|
|
|
+ @change="handleCheckAllChange"
|
|
|
+ :indeterminate="isIndeterminate"
|
|
|
+ >全选</el-checkbox
|
|
|
+ >
|
|
|
+ <el-checkbox-group
|
|
|
+ v-model="cauType"
|
|
|
+ class="checkboxSty"
|
|
|
+ @change="handleCheckedCitiesChange"
|
|
|
+ >
|
|
|
<el-checkbox
|
|
|
v-for="(item, index) in itemOption2"
|
|
|
:label="item.id"
|
|
@@ -583,10 +592,7 @@
|
|
|
><span>{{ item.fieldName }}</span>
|
|
|
</div>
|
|
|
<!-- @click="item.disable == true ? '' : changeStatus2s(item, index)" (旧)下面按钮事件 -->
|
|
|
- <div
|
|
|
- class="disChild"
|
|
|
- @click="titleFunc"
|
|
|
- >
|
|
|
+ <div class="disChild" @click="titleFunc">
|
|
|
<i class="radiosty" :class="item.disable === true ? 'disable' : ''"
|
|
|
><div :class="item.required ? 'activeRadio' : ''"></div></i
|
|
|
><span>必填</span>
|
|
@@ -800,6 +806,8 @@ export default {
|
|
|
components: { searchBoxNew, tableList, pagination },
|
|
|
data() {
|
|
|
return {
|
|
|
+ isIndeterminate: false,
|
|
|
+ checkAll: false,
|
|
|
changeHeight: true,
|
|
|
loading: false, //当前表单加载是否加载动画
|
|
|
navText: {
|
|
@@ -835,6 +843,7 @@ export default {
|
|
|
prop: "businessList",
|
|
|
hidden: true,
|
|
|
scope: "mapTypesBUS",
|
|
|
+ width: "380px",
|
|
|
},
|
|
|
// {
|
|
|
// label: "资料审核人",
|
|
@@ -964,6 +973,17 @@ export default {
|
|
|
pageSize: 10,
|
|
|
},
|
|
|
formList5: [
|
|
|
+ {
|
|
|
+ prop: "educationTypeId",
|
|
|
+ placeholder: "教育类型",
|
|
|
+ scope: "educationType",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "businessId",
|
|
|
+ placeholder: "业务层次",
|
|
|
+ scope: "businessLevel",
|
|
|
+ edu: "educationTypeId",
|
|
|
+ },
|
|
|
{
|
|
|
prop: "goodsName",
|
|
|
placeholder: "请输入商品名称",
|
|
@@ -973,6 +993,7 @@ export default {
|
|
|
{
|
|
|
label: "商品编码",
|
|
|
prop: "code",
|
|
|
+ width: "130px",
|
|
|
},
|
|
|
{
|
|
|
label: "年份",
|
|
@@ -981,24 +1002,29 @@ export default {
|
|
|
{
|
|
|
label: "商品名称",
|
|
|
prop: "goodsName",
|
|
|
+ width: "260px",
|
|
|
},
|
|
|
{
|
|
|
label: "业务层级",
|
|
|
scope: "maRY",
|
|
|
+ width: "360px",
|
|
|
},
|
|
|
{
|
|
|
label: "商品类型",
|
|
|
prop: "goodsType",
|
|
|
scope: "types",
|
|
|
+ width: "100px",
|
|
|
},
|
|
|
{
|
|
|
label: "有效状态",
|
|
|
prop: "status",
|
|
|
scope: "Status",
|
|
|
+ width: "100px",
|
|
|
},
|
|
|
{
|
|
|
label: "商品标价",
|
|
|
prop: "standPrice",
|
|
|
+ width: "100px",
|
|
|
},
|
|
|
],
|
|
|
disCheckList: [],
|
|
@@ -1009,7 +1035,7 @@ export default {
|
|
|
{
|
|
|
label: "商品编码",
|
|
|
prop: "code",
|
|
|
- width: "130",
|
|
|
+ width: "130px",
|
|
|
},
|
|
|
{
|
|
|
label: "年份",
|
|
@@ -1018,26 +1044,29 @@ export default {
|
|
|
{
|
|
|
label: "商品名称",
|
|
|
prop: "goodsName",
|
|
|
- width: "230",
|
|
|
+ width: "260px",
|
|
|
},
|
|
|
{
|
|
|
label: "业务层级",
|
|
|
scope: "maRY",
|
|
|
- width: "230",
|
|
|
+ width: "360px",
|
|
|
},
|
|
|
{
|
|
|
label: "商品类型",
|
|
|
prop: "goodsType",
|
|
|
scope: "types",
|
|
|
+ width: "140px",
|
|
|
},
|
|
|
{
|
|
|
label: "有效状态",
|
|
|
prop: "status",
|
|
|
scope: "Status",
|
|
|
+ width: "100px",
|
|
|
},
|
|
|
{
|
|
|
label: "商品标价",
|
|
|
prop: "standPrice",
|
|
|
+ width: "100px",
|
|
|
},
|
|
|
],
|
|
|
boxtableDataIsActive: [],
|
|
@@ -1077,6 +1106,63 @@ export default {
|
|
|
this.getUserInfoList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleCheckedCitiesChange() {
|
|
|
+ let nid = this.itemOption2.map((item) => {
|
|
|
+ return item.id;
|
|
|
+ });
|
|
|
+ this.checkAll = nid.every((item) => {
|
|
|
+ if (this.cauType.includes(item)) {
|
|
|
+ this.isIndeterminate = true;
|
|
|
+ return true;
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (this.cauType.length) {
|
|
|
+ this.isIndeterminate = true;
|
|
|
+ } else {
|
|
|
+ this.isIndeterminate = false;
|
|
|
+ }
|
|
|
+ if (this.checkAll) {
|
|
|
+ this.isIndeterminate = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleCheckAllChange(val) {
|
|
|
+ if (val) {
|
|
|
+ let nid = this.itemOption2.map((item) => {
|
|
|
+ return item.id;
|
|
|
+ });
|
|
|
+ let arrays = this.cauType.concat(nid);
|
|
|
+ this.cauType = this.setFunc(arrays);
|
|
|
+ this.isIndeterminate = false;
|
|
|
+ } else {
|
|
|
+ let nid = this.itemOption2.map((item) => {
|
|
|
+ return item.id;
|
|
|
+ });
|
|
|
+ let newArr = [];
|
|
|
+ this.cauType.forEach((item) => {
|
|
|
+ if (!nid.includes(item)) {
|
|
|
+ newArr.push(item);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.cauType = newArr;
|
|
|
+ console.log(this.cauType);
|
|
|
+ if (this.cauType.length) {
|
|
|
+ this.isIndeterminate = true;
|
|
|
+ } else {
|
|
|
+ this.isIndeterminate = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ setFunc(arr) {
|
|
|
+ var arrays = [];
|
|
|
+ for (let i = 0; i < arr.length; i++) {
|
|
|
+ if (!arrays.includes(arr[i])) {
|
|
|
+ arrays.push(arr[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return arrays;
|
|
|
+ },
|
|
|
handleSizeChangea(v) {
|
|
|
this.formDataa.pageSize = v;
|
|
|
this.formDataa.pageNum = 1;
|
|
@@ -1118,10 +1204,10 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.formDataa.goodsIds = ats.toString();
|
|
|
this.$message.success("删除成功");
|
|
|
- if(!this.formDataa.goodsIds){
|
|
|
- this.dialogVisibleisActive = false
|
|
|
+ if (!this.formDataa.goodsIds) {
|
|
|
+ this.dialogVisibleisActive = false;
|
|
|
this.search();
|
|
|
- return
|
|
|
+ return;
|
|
|
}
|
|
|
this.getNewInfos();
|
|
|
});
|
|
@@ -1243,8 +1329,8 @@ export default {
|
|
|
this.total5 = res.total;
|
|
|
});
|
|
|
},
|
|
|
- titleFunc(){
|
|
|
- this.$message.warning("该选项默认必填且不允许修改")
|
|
|
+ titleFunc() {
|
|
|
+ this.$message.warning("该选项默认必填且不允许修改");
|
|
|
},
|
|
|
openYL() {
|
|
|
this.dialogVisYL = true;
|
|
@@ -1260,9 +1346,9 @@ export default {
|
|
|
changeStatus1(item, index) {
|
|
|
if (item.checked) {
|
|
|
item.checked = false;
|
|
|
- var indexs = this.pzList1sss.findIndex(items => {
|
|
|
- return items.fieldKey === item.fieldKey
|
|
|
- })
|
|
|
+ var indexs = this.pzList1sss.findIndex((items) => {
|
|
|
+ return items.fieldKey === item.fieldKey;
|
|
|
+ });
|
|
|
this.pzList1sss.splice(indexs, 1);
|
|
|
} else {
|
|
|
item.checked = true;
|
|
@@ -1400,12 +1486,12 @@ export default {
|
|
|
}
|
|
|
this.pzList2sss = JSON.parse(JSON.stringify(this.listData.keyValue2));
|
|
|
data = data.filter((item) => {
|
|
|
- if(item.fieldKey === "commitment_seal"){
|
|
|
- item.required = true
|
|
|
+ if (item.fieldKey === "commitment_seal") {
|
|
|
+ item.required = true;
|
|
|
}
|
|
|
return item.fieldKey === "commitment_seal";
|
|
|
});
|
|
|
- console.log(data)
|
|
|
+ console.log(data);
|
|
|
this.pzList2 = data;
|
|
|
this.dialogVisibleLitsing2 = true;
|
|
|
},
|
|
@@ -1449,6 +1535,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.itemOption2 = array;
|
|
|
+ this.handleCheckedCitiesChange();
|
|
|
},
|
|
|
initOptions() {
|
|
|
this.$api.inquireCourseEducationType({ status: 1 }).then((res) => {
|
|
@@ -1495,6 +1582,7 @@ export default {
|
|
|
},
|
|
|
closeType(id) {
|
|
|
this.cauType.splice(this.cauType.indexOf(id), 1);
|
|
|
+ this.handleCheckedCitiesChange();
|
|
|
},
|
|
|
del(v) {
|
|
|
this.$alert(
|