...
|
...
|
@@ -30,14 +30,12 @@ export default { |
|
|
let loading = Vue.ref(true);
|
|
|
//选中数据
|
|
|
let pitch = Vue.ref([]);
|
|
|
let showTypeList=Vue.ref([]);
|
|
|
let search = Vue.ref({
|
|
|
resType: '',
|
|
|
keyword: '',
|
|
|
page: 1,
|
|
|
limit: 20,
|
|
|
});
|
|
|
let resTypeOptions=Vue.ref([])
|
|
|
const columns = [
|
|
|
{
|
|
|
prop: 'name',
|
...
|
...
|
@@ -84,49 +82,8 @@ export default { |
|
|
arr.push(item.id)
|
|
|
})
|
|
|
roleIds.value=arr.join(",");//选中的值
|
|
|
/*proxy.resourceData.map((v, i) => {
|
|
|
v.checked = false;
|
|
|
});
|
|
|
let selectData = val;
|
|
|
if (selectData.length > 0) {
|
|
|
selectData.map((item, index) => {
|
|
|
proxy.resourceData.map((v, i) => {
|
|
|
if (item.id == v.id) {
|
|
|
v.checked = true;
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
} else {
|
|
|
proxy.resourceData.map((v, i) => {
|
|
|
v.checked = false;
|
|
|
})
|
|
|
}*/
|
|
|
}
|
|
|
//获取资源类型数据
|
|
|
let getResourceTypoe=()=>{
|
|
|
proxy.$http.get(`/api-web/manage/restype/list`, {}, function (res) {
|
|
|
if (res && res.data) {
|
|
|
resTypeOptions.value=res.data
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
//获取展示类型的字典数据
|
|
|
let initShowType=()=>{
|
|
|
proxy.$http.post("/api-web/manage/ddic/findSucDdics/DETAILS_POWER", {}, function (res) {
|
|
|
if (res && res.data) {
|
|
|
let arr=res.data;
|
|
|
if(arr && arr.length>0){
|
|
|
arr.map(v=>{
|
|
|
showTypeList.value.push({
|
|
|
name: v.ddicName
|
|
|
,value: v.ddicCode.substring(v.ddicCode.lastIndexOf("_")+1,v.ddicCode.length)
|
|
|
});
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
//批量取消相关资源
|
|
|
let changeCancel = () => {
|
|
|
if(pitch.value.length<1){
|
...
|
...
|
@@ -182,32 +139,23 @@ export default { |
|
|
}
|
|
|
// 挂载完
|
|
|
Vue.onMounted(() => {
|
|
|
initShowType();
|
|
|
getResourceTypoe();
|
|
|
getListData();
|
|
|
})
|
|
|
return {
|
|
|
isMulti,
|
|
|
isTwoGroup,
|
|
|
show,
|
|
|
initShowType,
|
|
|
showTypeList,
|
|
|
search,
|
|
|
resTypeOptions,
|
|
|
changeCancel,
|
|
|
count,
|
|
|
hideDialog,
|
|
|
savebtn,
|
|
|
changeAdmin,
|
|
|
getResourceTypoe,
|
|
|
|
|
|
resourceData,
|
|
|
columns,
|
|
|
height,
|
|
|
loading,
|
|
|
|
|
|
selectionChange,
|
|
|
|
|
|
getListData,
|
|
|
loadTableDataList,
|
|
|
userName
|
...
|
...
|
|