Browse Source

Merge branch 'dev_web' of http://dev.ccwin-in.com:3000/BoXu.Zheng/WZC2 into dev_web

dev_web_online
陈薪名 2 years ago
parent
commit
5ce81c97f2
  1. 6
      fe/PC/src/components/umyTable/index.vue
  2. 7
      fe/PC/src/filters/index.js
  3. 6
      fe/PC/src/utils/index.js
  4. 2
      fe/PC/src/utils/request.js

6
fe/PC/src/components/umyTable/index.vue

@ -702,9 +702,9 @@ export default {
background: #f6f7fb !important;
border: none !important;
&:last-child{
background: unset !important;
}
// &:last-child{
// background: unset !important;
// }
}
::v-deep .el-form-item__error{
position: relative;

7
fe/PC/src/filters/index.js

@ -114,8 +114,15 @@ export function isTableColumns(data) {
return isData
}
/**
* @param {*} index 枚举值
* @param {*} text 枚举函数名称
* @param {*} prop 返回字段
* @param {*} type dictType
*/
export function trigger(index, text, prop, type) {
let Function = statusType.default[text]
if(!Function)return '无'
return Function(index, prop, type)
}
// 多数据源,集合

6
fe/PC/src/utils/index.js

@ -386,12 +386,14 @@ export function removeClass(ele, cls) {
//返回
export function Enum(status, index, prop) {
let _no_text = '无'
if(!status)return _no_text
if (index != undefined) { //如果传入的是index
if (prop === 'color') {
const domColor = status[index] ? status[index][prop] : ""
return 'color:' + domColor
} else {
const dom = status[index] ? status[index][prop] : "无"
const dom = status[index] ? status[index][prop] : _no_text
return dom
}
} else {
@ -492,7 +494,7 @@ export function getMatchRegConformValue(type,defaultValue,fixedNum){
// 字典格式化数据结构
export function dictFormatData() {
return new Promise(resolve => {
return new Promise((resolve,reject) => {
let rs = []
let childRs = {}
let param = {

2
fe/PC/src/utils/request.js

@ -91,7 +91,7 @@ service.interceptors.response.use(
},
error => {
let err = error.response.data.error // for debug
if (err.validationErrors) {
if (err && err.validationErrors) {
for (let item in err.validationErrors) {
Message({
message: err.validationErrors[item].message,

Loading…
Cancel
Save