标准类别下拉树
This commit is contained in:
+77
-10
@@ -1509,13 +1509,14 @@
|
||||
clearable
|
||||
:maxlength="100"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准类别" class="search-item">
|
||||
<el-input
|
||||
v-model="replaceLawsNumForm.menuId"
|
||||
placeholder="根据标准类别查找"
|
||||
clearable
|
||||
:maxlength="100"></el-input>
|
||||
</el-form-item>
|
||||
<selectTree
|
||||
ref="selectTreeRef"
|
||||
label="标准类别"
|
||||
placeholder="根据标准类别查找"
|
||||
:treeList="selectTreeList"
|
||||
v-model="replaceLawsNumForm.menuId"
|
||||
>
|
||||
</selectTree>
|
||||
<el-form-item class="search-item btn-box">
|
||||
<el-button
|
||||
type="primary"
|
||||
@@ -1769,6 +1770,8 @@ import TreeSelect from "@/components/treeSelect/treeSelect.vue";
|
||||
import TreeSelectNew from "@/components/treeSelect/treeSelectNew.vue";
|
||||
import ProcessTitle from "@/pages/processCenter/pages/components/ProcessTitle";
|
||||
import treeSelectModule from "@/components/treeSelect/treeSelectModule.vue";
|
||||
import selectTree from "@/components/abc/selectTree/selectTree"
|
||||
import { getTreeItem } from "@/common/myFun.js"
|
||||
|
||||
import {mapGetters} from "vuex";
|
||||
import store from "@/store";
|
||||
@@ -1789,7 +1792,8 @@ export default {
|
||||
TreeSelect,
|
||||
TreeSelectNew,
|
||||
treeSelectModule,
|
||||
ProcessTitle
|
||||
ProcessTitle,
|
||||
selectTree
|
||||
},
|
||||
props: {},
|
||||
data() {
|
||||
@@ -2563,6 +2567,7 @@ export default {
|
||||
url: '',
|
||||
urlChild: '',
|
||||
modelType:'',
|
||||
selectTreeList: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -2654,9 +2659,40 @@ export default {
|
||||
map.set(3,"继续有效");
|
||||
return map.get(data)
|
||||
},
|
||||
selectBuss(){
|
||||
async selectBuss(){
|
||||
this.replaceLawsNumModel = true
|
||||
this.getReplaceLawsNumRow()
|
||||
// 标准类别树
|
||||
const list1 = await this.getMenuListOne()
|
||||
const list2 = await this.getMenuListTwo()
|
||||
this.selectTreeList = list1.concat(list2)
|
||||
},
|
||||
// 企业标准树
|
||||
getMenuListOne() {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$http._getData('sarResource/ts-resource/getListStandLimitData', {
|
||||
sorDivide: 'BUSINESS_STAND',
|
||||
userId: this.$store.getters.userInfo.userId
|
||||
}).then(res=>{
|
||||
if(res && res.data)
|
||||
resolve(res.data)
|
||||
}).catch(e=>{
|
||||
console.log(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
// 技术体系树
|
||||
getMenuListTwo() {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$http._getData('lawss/sarMenuStandardLimit/getListStandLimit', {
|
||||
dicId: '9m4qqqaansxmox5e82zm'
|
||||
}).then(res=>{
|
||||
if(res && res.data)
|
||||
resolve(res.data)
|
||||
}).catch(e=>{
|
||||
console.log(e)
|
||||
})
|
||||
})
|
||||
},
|
||||
replaceLawsNumModelCancel () {
|
||||
// this.replaceLawsNumModel = false
|
||||
@@ -2690,11 +2726,16 @@ export default {
|
||||
total: 0,
|
||||
validFlag: '0',
|
||||
QCDW: '',
|
||||
menuId: ''
|
||||
// menuId: ''
|
||||
}
|
||||
this.$refs.selectTreeRef.clear()
|
||||
this.getReplaceLawsNumRow()
|
||||
},
|
||||
getReplaceLawsNumRow () {
|
||||
this.replaceLawsNumForm.userId = this.$store.getters.userInfo.userId
|
||||
let currentTreeItem = getTreeItem(this.selectTreeList, this.replaceLawsNumForm.menuId)
|
||||
this.replaceLawsNumForm.treeType = currentTreeItem.treeType
|
||||
|
||||
if(this.replaceLawsNumForm.issueTimeArr && this.replaceLawsNumForm.issueTimeArr.length > 0){
|
||||
this.replaceLawsNumForm.issueTimeStart = this.replaceLawsNumForm.issueTimeArr[0] || null
|
||||
this.replaceLawsNumForm.issueTimeEnd = this.replaceLawsNumForm.issueTimeArr[1] || null
|
||||
@@ -2728,6 +2769,10 @@ export default {
|
||||
})
|
||||
},
|
||||
getReplaceLawsNumRowFirst () {
|
||||
this.replaceLawsNumForm.userId = this.$store.getters.userInfo.userId
|
||||
let currentTreeItem = getTreeItem(this.selectTreeList, this.replaceLawsNumForm.menuId)
|
||||
this.replaceLawsNumForm.treeType = currentTreeItem.treeType
|
||||
|
||||
this.replaceLawsNumForm.page = 1
|
||||
this.replacePage = 1
|
||||
if(this.replaceLawsNumForm.issueTimeArr && this.replaceLawsNumForm.issueTimeArr.length > 0){
|
||||
@@ -5456,6 +5501,9 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// selectTreeFilterText (val) {
|
||||
// this.$refs.selectTree.filter(val);
|
||||
// },
|
||||
'sarBussionessStandEO.standSort':{
|
||||
handler:function(val){
|
||||
this.QCBFC = !!(val && val.indexOf("QCBFC") !== -1);
|
||||
@@ -5850,4 +5898,23 @@ export default {
|
||||
/deep/.el-table__fixed-body-wrapper .el-table__body {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
//
|
||||
//.sel-input {
|
||||
// width: 96%;
|
||||
// margin: 5px;
|
||||
// height: 30px;
|
||||
// /deep/ .el-input__inner{
|
||||
// height: 30px;
|
||||
// line-height: 30px;
|
||||
// }
|
||||
//}
|
||||
//.sel-option {
|
||||
// width: 100%;
|
||||
// height: 200px;
|
||||
// overflow: auto;
|
||||
// background-color: #fff;
|
||||
// cursor: pointer;
|
||||
// font-weight: normal!important;
|
||||
// padding: 0 5px;
|
||||
//}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user