|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
v-model="filterQuery[item.columnName]"
|
|
|
|
|
:placeholder="item.columnDesc"
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
@keyup.enter.native="executeFuc($event,null,'5',item.clickFuc)"
|
|
|
|
|
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
|
|
|
|
|
clearable
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -34,7 +34,7 @@
|
|
|
|
|
:disabled="executeEval(null,item.disabledFuc,false)"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
:remote-method="(query) => executeFuc(query, null,'6',item.clickFuc)"
|
|
|
|
|
:remote-method="(query) => executeFuc(query,'5',item.clickFuc)"
|
|
|
|
|
clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in options[item.clickFuc]"
|
|
|
|
@ -171,7 +171,7 @@
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
highlight-current-row="true"
|
|
|
|
|
:row-class-name="tableRowClassName"
|
|
|
|
|
@current-change="executeFuc"
|
|
|
|
|
@current-change="(row) => executeFuc(row,'0',tableObj.handleChangeFuc)"
|
|
|
|
|
@selection-change="handleSelectionUdiChange"
|
|
|
|
|
>
|
|
|
|
|
<template v-for="(item, index) in tableHeader">
|
|
|
|
@ -182,7 +182,7 @@
|
|
|
|
|
v-if="item.columnType == 'selection'"
|
|
|
|
|
type="selection"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:selectable="executeFuc"></el-table-column>
|
|
|
|
|
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
|
|
|
|
@ -207,7 +207,7 @@
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,null,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{ item.lableRuleObj[scope.row[item.columnName]] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
@ -220,7 +220,7 @@
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="executeFuc(scope.row,null,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
|
<el-tag :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
|
<span>{{ item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName] }}</span>
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
@ -241,7 +241,7 @@
|
|
|
|
|
:key="buttonItem"
|
|
|
|
|
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
|
|
|
|
|
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
|
|
|
|
|
@click.native.stop="executeFuc(scope.row,null,'1',buttonItem.clickFuc)"
|
|
|
|
|
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
|
|
|
|
|
>{{ buttonItem.name }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
@ -256,7 +256,7 @@
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,null,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{ scope.row[item.columnName] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
@ -837,8 +837,8 @@ export default {
|
|
|
|
|
_this.options.findMethod = []
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
executeFuc(row,number,type,clickFuc,value){
|
|
|
|
|
return executeFuc(this,row,number,type,clickFuc,value);
|
|
|
|
|
executeFuc(row,type,clickFuc,value){
|
|
|
|
|
return executeFuc(this,row,type,clickFuc,value);
|
|
|
|
|
},
|
|
|
|
|
executeEval(row,expression,defaultRet){
|
|
|
|
|
if(expression){
|
|
|
|
|