qianlishi 3 years ago
parent a1651c07bd
commit 5876f84237

@ -75,7 +75,6 @@
<script>
import axios from "axios";
import { getToken } from "@/utils/auth";
import Cookies from "js-cookie";
export default {
name: "Cselect",
props: {

@ -12,7 +12,6 @@
<script>
import request from "@/utils/request";
import { valueOf } from "screenfull";
export default {
props: {
dictCode: null, // dictCodeurl

@ -814,7 +814,6 @@ export default {
},
//
fieldValueByAnjiInput(value, columnConfig) {
console.log(1);
const localStorageUnit = this.getSettingByName("unit_conversion");
let objUnitConversion = "";
let objUnitKeepPoint = "";
@ -1025,8 +1024,6 @@ export default {
.el-button--text:focus {
color: #799ffc;
border-color: transparent;
// background-color: transparent;
// background: red !important;
}
.el-button + .el-button {
margin-left: 0 !important;

@ -14,8 +14,6 @@
@selection-change="handleSelectionChange"
@row-click="handleTableRowClick"
>
<!-- <el-table-column fixed type="selection" width="50" align="center" /> -->
<el-table-column label="序号" min-width="50" align="center">
<template slot-scope="scope">
{{ scope.$index + 1 }}
@ -377,8 +375,6 @@ export default {
},
//
handleTableRowClick(row, column, event) {
// console.log(row)
// console.log(column)
// optiontableRowClick
if (typeof this.option.tableRowClick == "function") {
this.option.tableRowClick(
@ -457,43 +453,6 @@ export default {
this.$emit("input", this.form.records);
}
});
/*
this.$refs['form'].validate((valid) => {
if (valid) {
//
if (this.isBlank(row[this.primaryKeyFieldName])) {
//
if (typeof this.option.beforeInsert == 'function') {
this.option.beforeInsert(this.relateData, row)
}
//
this.option.buttons.add.api(row).then((response) => {
if (response.code == 200) {
this.$set(this.saveButtonStatus, index, 'inShow')
//
this.handleQueryPageList()
}
})
} else {
//
if (typeof this.option.beforeUpdate == 'function') {
this.option.beforeUpdate(this.relateData, row)
}
//
this.option.buttons.edit.api(row).then((response) => {
if (response.code == 200) {
this.$set(this.saveButtonStatus, index, 'inShow')
//
this.handleQueryPageList()
}
})
}
} else {
console.log('valid fail')
return false
}
})
*/
},
//
handleDelete(row, index) {

@ -164,9 +164,6 @@ export default {
return [];
} else {
return this.option.joinEntitys;
// hide != true
// let entitys = this.option.joinEntitys.filter((item) => item['hide'] == null || item['hide'] == false)
// return entitys
}
},
//
@ -354,7 +351,6 @@ export default {
}
//
if (this.modelType == "edit") {
// console.log(this.$slots.customCard[0].context.$refs.cardInEditData.updateData.settingValue)
const { code, message } = await this.option.buttons.edit.api(params);
if (code == "200") {
//
@ -367,32 +363,6 @@ export default {
console.log(`提交表单调用更新接口失败:${message}`);
}
}
/*
//
this.$refs.mainForm.handleSave(() => {
//
if (this.countJoinEntityOneToOne == 0) {
//
this.handleCloseDialog()
//
this.$emit('closeEvent')
return
}
//
for (let i = 0; i < this.joinEntitys.length; i++) {
if (this.joinEntitys[i].joinType == 'OneToOne') {
this.$refs['joinForm' + i].handleSave(() => {
this.countForSavedOneToOneJoinEntity++
if (this.countForSavedOneToOneJoinEntity == this.countJoinEntityOneToOne) {
//
this.handleCloseDialog()
//
this.$emit('closeEvent')
}
})
}
}
})*/
},
//
checkedChildrenValidate(list, confingList) {

@ -168,9 +168,6 @@ export default {
}
</script>
<style lang="less" scoped>
// /deep/.el-input-group__append {
// padding: 0 5px;
// }
/deep/.el-input__suffix {
padding: 0 6px;
}

@ -293,7 +293,6 @@ export default {
headers: { noPrompt: true },
params: param
}).then(response => {
// console.log(response)
this.setOptions(response.data);
});
},
@ -331,16 +330,9 @@ export default {
return;
}
this.totalPage = resData.pages;
// resData.records
// resData.total
// resData.size
// resData.current
this.options = resData.records;
},
remoteQuery(keyword) {
// if (this.isBlank(keyword)) {
// return
// }
setTimeout(() => {
if (
this.method != null &&

Loading…
Cancel
Save