commit
This commit is contained in:
+31
-31
@@ -125,7 +125,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{
|
<div>{{
|
||||||
scope.row.updateTime ? $moment(scope.row.updateTime).format('YYYY-MM-DD') : scope.row.updateTime
|
scope.row.updateTime ? $moment(scope.row.updateTime).format("YYYY-MM-DD") : scope.row.updateTime
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -186,7 +186,7 @@ export default {
|
|||||||
selectedList: [],
|
selectedList: [],
|
||||||
// 新增、编辑 准入信息字段
|
// 新增、编辑 准入信息字段
|
||||||
sarAccessEO: {
|
sarAccessEO: {
|
||||||
relateFile: '',
|
relateFile: "",
|
||||||
country: "",
|
country: "",
|
||||||
applyArctic: "",
|
applyArctic: "",
|
||||||
energyKind: "",
|
energyKind: "",
|
||||||
@@ -263,29 +263,29 @@ export default {
|
|||||||
sortKey: 1,
|
sortKey: 1,
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
...this.sarSarAccessEOSearch,
|
...this.sarSarAccessEOSearch
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
let arr = res.data.records;
|
let arr = res.data.records;
|
||||||
|
let map = new Map();
|
||||||
|
this.countryOptions.forEach(item => {
|
||||||
|
map.set(item.value, item.label);
|
||||||
|
});
|
||||||
arr.forEach(item => {
|
arr.forEach(item => {
|
||||||
// 国家地区转换
|
// 国家地区转换
|
||||||
if (item.countryArea !== null || item.countryArea !== "") {
|
if (item.countryArea !== null || item.countryArea !== "") {
|
||||||
let k = (item.countryArea || "").split(',')
|
let k = (item.countryArea || "").split(",");
|
||||||
for (let i in this.countryOptions) {
|
|
||||||
for (let m = 0; m < k.length; m++) {
|
for (let m = 0; m < k.length; m++) {
|
||||||
if (this.countryOptions[i].value === k[m]) {
|
k[m] = map.get(k[m]);
|
||||||
k[m] = this.countryOptions[i].label
|
item.countryAreaShow = k.join(",");
|
||||||
}
|
|
||||||
item.countryAreaShow = k.join(',')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
})
|
this.tableLoading = false;
|
||||||
this.sarAccessListDatas = arr
|
this.sarAccessListDatas = arr;
|
||||||
this.tableLoading = false
|
this.sarSarAccessEOSearch.page = 1;
|
||||||
this.sarSarAccessEOSearch.page = 1
|
this.sarAccessListTotal = res.data.total;
|
||||||
this.sarAccessListTotal = res.data.total
|
|
||||||
}, e => {
|
}, e => {
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -299,8 +299,8 @@ export default {
|
|||||||
// this.searchSarAccess();
|
// this.searchSarAccess();
|
||||||
},
|
},
|
||||||
clearSearch() {
|
clearSearch() {
|
||||||
this.sarSarAccessEOSearch.countryArea = ''
|
this.sarSarAccessEOSearch.countryArea = "";
|
||||||
this.sarSarAccessEOSearch.detailedListName = ''
|
this.sarSarAccessEOSearch.detailedListName = "";
|
||||||
// this.searchSarAccess();
|
// this.searchSarAccess();
|
||||||
},
|
},
|
||||||
// 新增相关
|
// 新增相关
|
||||||
@@ -311,29 +311,29 @@ export default {
|
|||||||
},
|
},
|
||||||
// 批量删除
|
// 批量删除
|
||||||
deleteSarAccess(flag, id) {
|
deleteSarAccess(flag, id) {
|
||||||
if (flag === 'delOne') {
|
if (flag === "delOne") {
|
||||||
this.selectedList = [];
|
this.selectedList = [];
|
||||||
this.selectedList[0] = id;
|
this.selectedList[0] = id;
|
||||||
}
|
}
|
||||||
if (this.selectedList.length === 0) {
|
if (this.selectedList.length === 0) {
|
||||||
this.$message.warning('请选择要删除的数据')
|
this.$message.warning("请选择要删除的数据");
|
||||||
} else {
|
} else {
|
||||||
this.$confirm('确定删除这些数据?', '提示', {
|
this.$confirm("确定删除这些数据?", "提示", {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: "确定",
|
||||||
confirmButtonClass: 'common-button-primary',
|
confirmButtonClass: "common-button-primary",
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: "取消",
|
||||||
type: 'warning',
|
type: "warning"
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
const URL = `sarLawsDetailedList/sar-laws-detailed-list/deleteListAll?idList=${this.selectedList.join(',')}`
|
const URL = `sarLawsDetailedList/sar-laws-detailed-list/deleteListAll?idList=${this.selectedList.join(",")}`;
|
||||||
this.$http.postDelete(URL, {}, res => {
|
this.$http.postDelete(URL, {}, res => {
|
||||||
this.searchSarAccess();
|
this.searchSarAccess();
|
||||||
this.selectedList = [];
|
this.selectedList = [];
|
||||||
this.$message.success('删除成功')
|
this.$message.success("删除成功");
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 表格选择框
|
// 表格选择框
|
||||||
@@ -356,7 +356,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击 table编辑按钮 事件
|
// 点击 table编辑按钮 事件
|
||||||
editTable(item) {
|
editTable(item) {
|
||||||
this.$store.commit('SET_ACCESS_STAND_REG_ROW', item)
|
this.$store.commit("SET_ACCESS_STAND_REG_ROW", item);
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "ListOfStandardsAndRegulationsDetails",
|
name: "ListOfStandardsAndRegulationsDetails",
|
||||||
query: {
|
query: {
|
||||||
@@ -370,8 +370,8 @@ export default {
|
|||||||
// 将文本状态的id与name对应
|
// 将文本状态的id与name对应
|
||||||
setMap(data) {
|
setMap(data) {
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
this.$set(this.countryAreaMap, item.value, item.label)
|
this.$set(this.countryAreaMap, item.value, item.label);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -385,7 +385,7 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.countryOptions = res.data.COUNTRY;
|
this.countryOptions = res.data.COUNTRY;
|
||||||
this.setMap(this.countryOptions)
|
this.setMap(this.countryOptions);
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,8 +24,7 @@
|
|||||||
@mouseleave="mouseleave(data)">
|
@mouseleave="mouseleave(data)">
|
||||||
<span
|
<span
|
||||||
:class="data.children.length !== 0 ? 'is-show' : 'is-leaf-none'"></span>
|
:class="data.children.length !== 0 ? 'is-show' : 'is-leaf-none'"></span>
|
||||||
<span v-if="node.label.length<15"> {{ node.label}} </span>
|
<span class="node-font" > {{ node.label }} </span>
|
||||||
<span v-else> {{ node.label.substring(0,15)+'...'}} </span>
|
|
||||||
<span>
|
<span>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
@@ -5050,7 +5049,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" >
|
||||||
@import '~@/assets/styles/mixins';
|
@import '~@/assets/styles/mixins';
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
|
||||||
@@ -5069,6 +5068,12 @@ export default {
|
|||||||
width: calc(~'100% - 15px');
|
width: calc(~'100% - 15px');
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
.node-font{
|
||||||
|
display: inline-block;
|
||||||
|
width: 120px;
|
||||||
|
text-overflow:ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tree-collapse {
|
.tree-collapse {
|
||||||
|
|||||||
Reference in New Issue
Block a user