|
@@ -965,7 +965,6 @@ export default {
|
|
// menuOrderNum() {
|
|
// menuOrderNum() {
|
|
// if (!this.formData.routePath) return 0;
|
|
// if (!this.formData.routePath) return 0;
|
|
// let targetMenu = this.getTargetMenu(this.menus);
|
|
// let targetMenu = this.getTargetMenu(this.menus);
|
|
- // console.log(targetMenu);
|
|
|
|
// if (targetMenu.children?.length) {
|
|
// if (targetMenu.children?.length) {
|
|
// return targetMenu.children.length;
|
|
// return targetMenu.children.length;
|
|
// } else {
|
|
// } else {
|
|
@@ -1001,11 +1000,9 @@ export default {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.btnTemplate = res.data.map((item) => JSON.parse(item.remark));
|
|
this.btnTemplate = res.data.map((item) => JSON.parse(item.remark));
|
|
} else {
|
|
} else {
|
|
- console.log(res);
|
|
|
|
this.$message.error("获取按钮模板数据失败");
|
|
this.$message.error("获取按钮模板数据失败");
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
- console.log(error);
|
|
|
|
this.$message.error("获取按钮模板数据失败");
|
|
this.$message.error("获取按钮模板数据失败");
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1047,7 +1044,6 @@ export default {
|
|
treeSelectChange(val) {
|
|
treeSelectChange(val) {
|
|
// await this.getMenuList();
|
|
// await this.getMenuList();
|
|
//没有change事件
|
|
//没有change事件
|
|
- console.log("val", val);
|
|
|
|
},
|
|
},
|
|
async treeSelectFocus() {
|
|
async treeSelectFocus() {
|
|
await this.getMenuList();
|
|
await this.getMenuList();
|
|
@@ -1075,7 +1071,6 @@ export default {
|
|
let tableComment = this.getTableCommont(this.tableName, this.tableList);
|
|
let tableComment = this.getTableCommont(this.tableName, this.tableList);
|
|
// 获取当前表单结构信息
|
|
// 获取当前表单结构信息
|
|
getListName(data).then((res) => {
|
|
getListName(data).then((res) => {
|
|
- // console.log(res);
|
|
|
|
this.tableFieldList = res.map((item, index) => {
|
|
this.tableFieldList = res.map((item, index) => {
|
|
return {
|
|
return {
|
|
id: this.tableName + "_" + item.fieldName,
|
|
id: this.tableName + "_" + item.fieldName,
|
|
@@ -1098,7 +1093,6 @@ export default {
|
|
relationFieldList: [],
|
|
relationFieldList: [],
|
|
};
|
|
};
|
|
});
|
|
});
|
|
- // console.log(this.tableFieldList);
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 关联表变化回调
|
|
// 关联表变化回调
|
|
@@ -1578,7 +1572,6 @@ export default {
|
|
// isRelationFieldAll: false,
|
|
// isRelationFieldAll: false,
|
|
// };
|
|
// };
|
|
// this.validateField(this.tableFieldList, validateParams);
|
|
// this.validateField(this.tableFieldList, validateParams);
|
|
- // console.log(validateParams);
|
|
|
|
// if (validateParams.isFieldDescrib) {
|
|
// if (validateParams.isFieldDescrib) {
|
|
// this.$message.error("需要显示的字段描述不能为空");
|
|
// this.$message.error("需要显示的字段描述不能为空");
|
|
// return;
|
|
// return;
|
|
@@ -1648,7 +1641,6 @@ export default {
|
|
let list = Object.assign([], classificationData);
|
|
let list = Object.assign([], classificationData);
|
|
// 校验 填写不完整删除查询条件
|
|
// 校验 填写不完整删除查询条件
|
|
classificationData.forEach((item, index) => {
|
|
classificationData.forEach((item, index) => {
|
|
- console.log("进入处理")
|
|
|
|
if (item.conditionName == "" || item.conditionField == "" || item.conditionType == "") {
|
|
if (item.conditionName == "" || item.conditionField == "" || item.conditionType == "") {
|
|
classificationData.splice(index, 1);
|
|
classificationData.splice(index, 1);
|
|
}
|
|
}
|
|
@@ -1657,7 +1649,6 @@ export default {
|
|
},
|
|
},
|
|
// 创建回调
|
|
// 创建回调
|
|
async createHandle() {
|
|
async createHandle() {
|
|
- // console.log(123);
|
|
|
|
// this.sqlKey = uuidv4();
|
|
// this.sqlKey = uuidv4();
|
|
this.isInputInvalid = true;
|
|
this.isInputInvalid = true;
|
|
this.$refs.formData.validate(async (valid) => {
|
|
this.$refs.formData.validate(async (valid) => {
|
|
@@ -1698,7 +1689,6 @@ export default {
|
|
// 表单
|
|
// 表单
|
|
let result;
|
|
let result;
|
|
let btnTemplate = this.formateBtnTemplate();
|
|
let btnTemplate = this.formateBtnTemplate();
|
|
- console.log(btnTemplate);
|
|
|
|
|
|
|
|
// if (this.tId && this.menuId) {
|
|
// if (this.tId && this.menuId) {
|
|
if (this.menuId && !this.isNeedNewMenu) {
|
|
if (this.menuId && !this.isNeedNewMenu) {
|
|
@@ -1845,7 +1835,6 @@ export default {
|
|
this.dragTableStatisticList.forEach((item) => {
|
|
this.dragTableStatisticList.forEach((item) => {
|
|
item.tableKey = this.editData.tableKey;
|
|
item.tableKey = this.editData.tableKey;
|
|
});
|
|
});
|
|
- // console.log(res);
|
|
|
|
res1 = await updateStatistic({
|
|
res1 = await updateStatistic({
|
|
tableKey: this.editData.tableKey,
|
|
tableKey: this.editData.tableKey,
|
|
dragTableStatisticList: this.dragTableStatisticList,
|
|
dragTableStatisticList: this.dragTableStatisticList,
|
|
@@ -1859,7 +1848,6 @@ export default {
|
|
data.tableKey
|
|
data.tableKey
|
|
);
|
|
);
|
|
res = await addDragTable(data);
|
|
res = await addDragTable(data);
|
|
- // console.log('123456789', res)
|
|
|
|
this.dragTableStatisticList.forEach((item) => {
|
|
this.dragTableStatisticList.forEach((item) => {
|
|
item.tableKey = this.uuid;
|
|
item.tableKey = this.uuid;
|
|
});
|
|
});
|
|
@@ -1879,7 +1867,6 @@ export default {
|
|
btnTemplate.menuID = result.data;
|
|
btnTemplate.menuID = result.data;
|
|
let btnRes = await insertByDefaultBtn(btnTemplate);
|
|
let btnRes = await insertByDefaultBtn(btnTemplate);
|
|
if (btnRes.code == 200) {
|
|
if (btnRes.code == 200) {
|
|
- console.log(btnRes);
|
|
|
|
// 发送权限请求
|
|
// 发送权限请求
|
|
let payload = btnRes.data.map((item) => {
|
|
let payload = btnRes.data.map((item) => {
|
|
return {
|
|
return {
|
|
@@ -2021,15 +2008,12 @@ export default {
|
|
this.isShowAddData = true;
|
|
this.isShowAddData = true;
|
|
this.dataType = await this.getDicts("table_statistic_type");
|
|
this.dataType = await this.getDicts("table_statistic_type");
|
|
this.dataType = this.dataType.data;
|
|
this.dataType = this.dataType.data;
|
|
- // console.log(this.dataType)
|
|
|
|
},
|
|
},
|
|
async updataDialog() {
|
|
async updataDialog() {
|
|
- // console.log(this.dataType)
|
|
|
|
},
|
|
},
|
|
// 修改数据字段
|
|
// 修改数据字段
|
|
upadtaData() {
|
|
upadtaData() {
|
|
this.dragTableStatisticList.forEach((item, index) => {
|
|
this.dragTableStatisticList.forEach((item, index) => {
|
|
- // console.log(this.dataCountFormData);
|
|
|
|
if (item.id !== undefined && item.id == this.dataCountFormData.id) {
|
|
if (item.id !== undefined && item.id == this.dataCountFormData.id) {
|
|
this.dragTableStatisticList[index] = this.dataCountFormData;
|
|
this.dragTableStatisticList[index] = this.dataCountFormData;
|
|
} else if (item.xid == this.dataCountFormData.xid) {
|
|
} else if (item.xid == this.dataCountFormData.xid) {
|
|
@@ -2037,12 +2021,10 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
this.isShowAddData = false;
|
|
this.isShowAddData = false;
|
|
- // console.log(this.dragTableStatisticList)
|
|
|
|
this.dataCountFormData = {};
|
|
this.dataCountFormData = {};
|
|
},
|
|
},
|
|
// 添加数据字段
|
|
// 添加数据字段
|
|
addData() {
|
|
addData() {
|
|
- // console.log(this.dataCountFormData);
|
|
|
|
this.dataCountFormData.xid = Date.now();
|
|
this.dataCountFormData.xid = Date.now();
|
|
this.dataCountFormData.tableKey = this.tableKey;
|
|
this.dataCountFormData.tableKey = this.tableKey;
|
|
this.dragTableStatisticList.push(this.dataCountFormData);
|
|
this.dragTableStatisticList.push(this.dataCountFormData);
|
|
@@ -2062,20 +2044,16 @@ export default {
|
|
searchFieldList: this.searchFieldList,
|
|
searchFieldList: this.searchFieldList,
|
|
dtTableName: this.tableName,
|
|
dtTableName: this.tableName,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
- // console.log(res)
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 修改统计信息
|
|
// 修改统计信息
|
|
async handleUpdateStat(row) {
|
|
async handleUpdateStat(row) {
|
|
- // console.log(row);
|
|
|
|
this.dataCountFormData = row;
|
|
this.dataCountFormData = row;
|
|
this.dataCountFormData.xid = Date.now();
|
|
this.dataCountFormData.xid = Date.now();
|
|
this.staictitle = "修改统计数据字段";
|
|
this.staictitle = "修改统计数据字段";
|
|
this.dataType = await this.getDicts("table_statistic_type");
|
|
this.dataType = await this.getDicts("table_statistic_type");
|
|
this.dataType = this.dataType.data;
|
|
this.dataType = this.dataType.data;
|
|
this.isShowAddData = true;
|
|
this.isShowAddData = true;
|
|
- // console.log(this.dataCountFormData)
|
|
|
|
- // console.log(this.dragTableStatisticList);
|
|
|
|
},
|
|
},
|
|
// 删除统计信息
|
|
// 删除统计信息
|
|
handleDeleteStat(row) {
|
|
handleDeleteStat(row) {
|