|
@@ -308,18 +308,19 @@
|
|
<el-select
|
|
<el-select
|
|
v-model="GLExcelFrom.name"
|
|
v-model="GLExcelFrom.name"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
|
+ @change="changetherr()"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="(item,key) in GLExcelData"
|
|
v-for="(item,key) in GLExcelData"
|
|
:key="key"
|
|
:key="key"
|
|
- :label="item.label"
|
|
|
|
- :value="item.value"
|
|
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
<el-input
|
|
<el-input
|
|
- v-model="GLExcelFrom.name"
|
|
|
|
|
|
+ v-model="GLExcelFrom.search"
|
|
placeholder="请输入需要选择的内容"
|
|
placeholder="请输入需要选择的内容"
|
|
></el-input>
|
|
></el-input>
|
|
<el-tree
|
|
<el-tree
|
|
@@ -1228,6 +1229,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+let setTimeout22
|
|
import {
|
|
import {
|
|
saveFormAndElement, selectFormElements,
|
|
saveFormAndElement, selectFormElements,
|
|
importWbsTree
|
|
importWbsTree
|
|
@@ -1241,7 +1243,7 @@ import { findProjectTree as getAlltree } from "@/api/manager/projectinfo";
|
|
import { getList as getAttchFromOriginalName } from "@/api/resource/attach";
|
|
import { getList as getAttchFromOriginalName } from "@/api/resource/attach";
|
|
import { getDictionary } from "@/api/system/dict";
|
|
import { getDictionary } from "@/api/system/dict";
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
-import { getList, tabLazytree } from '@/api/exctab/excelmodel'
|
|
|
|
|
|
+import { getList, tabLazytreeAll } from '@/api/exctab/excelmodel'
|
|
export default {
|
|
export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -1250,18 +1252,18 @@ export default {
|
|
GLExcel: false,
|
|
GLExcel: false,
|
|
GLExcelFrom: {
|
|
GLExcelFrom: {
|
|
name: '',
|
|
name: '',
|
|
-
|
|
|
|
|
|
+ search: '',//搜素框舒服的值
|
|
},
|
|
},
|
|
GLExcelData: [],//
|
|
GLExcelData: [],//
|
|
GLExcelProps: {
|
|
GLExcelProps: {
|
|
label: 'name',
|
|
label: 'name',
|
|
- children: 'zones',
|
|
|
|
- isLeaf: 'leaf'
|
|
|
|
|
|
+ children: 'children',
|
|
|
|
+ isLeaf: 'childrenlength'
|
|
},
|
|
},
|
|
exceldata: [],//清表模板
|
|
exceldata: [],//清表模板
|
|
//#endregion
|
|
//#endregion
|
|
|
|
|
|
-
|
|
|
|
|
|
+ //#region
|
|
id: '',
|
|
id: '',
|
|
projectid: '',
|
|
projectid: '',
|
|
filterText: '',
|
|
filterText: '',
|
|
@@ -1334,6 +1336,7 @@ export default {
|
|
namelist: [],
|
|
namelist: [],
|
|
|
|
|
|
infoNameVisible: false,
|
|
infoNameVisible: false,
|
|
|
|
+ //#endregion
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -1928,19 +1931,34 @@ export default {
|
|
async getList (da) {//获取清表模板信息
|
|
async getList (da) {//获取清表模板信息
|
|
const { data: res } = await getList(da)
|
|
const { data: res } = await getList(da)
|
|
console.log(res);
|
|
console.log(res);
|
|
|
|
+ if (res.code === 200 && res.msg === '操作成功') {
|
|
|
|
+ this.GLExcelData = res.data.records
|
|
|
|
+ }
|
|
},
|
|
},
|
|
- async tabLazytree () {//清表树信息
|
|
|
|
- // const { data: res } = await tabLazytree({})
|
|
|
|
- // console.log(res);
|
|
|
|
|
|
+ async tabLazytreeAll () {//清表树信息
|
|
|
|
+ const { data: res } = await tabLazytreeAll({
|
|
|
|
+ modeId: this.GLExcelFrom.name,
|
|
|
|
+ name: this.GLExcelFrom.search,
|
|
|
|
+ })
|
|
|
|
+ console.log(res);
|
|
|
|
+ if (res.code === 200 && res.msg === '操作成功') {
|
|
|
|
+ this.exceldata = res.data
|
|
|
|
+ }
|
|
},
|
|
},
|
|
Associationlist (scope) {//关联清表点击事件
|
|
Associationlist (scope) {//关联清表点击事件
|
|
this.GLExcel = true
|
|
this.GLExcel = true
|
|
this.getList({
|
|
this.getList({
|
|
current: 1,
|
|
current: 1,
|
|
size: 100000,
|
|
size: 100000,
|
|
- parentId: scope.row.id
|
|
|
|
|
|
+ parentId: 0
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ changetherr () {//清表类型选择框change事件
|
|
|
|
+ if (this.GLExcelFrom.name) {
|
|
|
|
+ this.GLExcelFrom.search = ''
|
|
|
|
+ this.tabLazytreeAll()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
GLExcelMD () {//弹框关闭事件
|
|
GLExcelMD () {//弹框关闭事件
|
|
|
|
|
|
},
|
|
},
|