|
@@ -5,9 +5,9 @@
|
|
|
<el-button class="buttons" size="mini" round @click="handleInsert">
|
|
|
新增记录
|
|
|
</el-button>
|
|
|
- <el-button class="buttons" size="mini" round @click="export2Excel">
|
|
|
+ <!-- <el-button class="buttons" size="mini" round @click="export2Excel">
|
|
|
批量导出</el-button
|
|
|
- >
|
|
|
+ > -->
|
|
|
<el-button class="buttons" size="mini" round @click="outExe">
|
|
|
模板下载</el-button
|
|
|
>
|
|
@@ -369,8 +369,8 @@ const state = reactive({
|
|
|
{ title: "场站", code: "stationName", width: "100" },
|
|
|
{ title: "机型", code: "modelId" },
|
|
|
{ title: "规则名称", code: "name", width: "150" },
|
|
|
- { title: "表达式", code: "expression", width: "150" },
|
|
|
- { title: "描述", code: "description", width: "150" },
|
|
|
+ { title: "表达式", code: "expressionXv", width: "50" },
|
|
|
+ { title: "描述", code: "descriptionXv", width: "50" },
|
|
|
{ title: "所属部件", code: "relatedPartsName" },
|
|
|
// { title: "级别", code: "rank" },
|
|
|
{ title: "类型", code: "category" },
|
|
@@ -1890,6 +1890,19 @@ const getWpArray = async () => {
|
|
|
const getData = async () => {
|
|
|
const { data } = await custombj_fetchTableData(query);
|
|
|
if (data) {
|
|
|
+ data.records.forEach(it => {
|
|
|
+ if (it.expression.length>5) {
|
|
|
+ it.expressionXv = it.expression.substring(0,5) + '...'
|
|
|
+ } else {
|
|
|
+ it.expressionXv = it.expression + '...'
|
|
|
+ }
|
|
|
+ if (it.description.length>5) {
|
|
|
+ it.descriptionXv = it.description.substring(0,5) + '...'
|
|
|
+ } else {
|
|
|
+ it.descriptionXv = it.description + '...'
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
state.tableData = data.records;
|
|
|
total.value = data.total;
|
|
|
}
|