标准/译文获取申请 搜索条件

This commit is contained in:
baoyu
2024-03-29 10:50:59 +08:00
parent 20cfd0b7a4
commit bcc20af255
@@ -36,10 +36,10 @@
</el-select>
</el-form-item>
<el-form-item class="el-form-item search-item" label="申请人">
<el-select v-model="StandardApplyForEOPage.applyForUserIds" clearable placeholder="请选择申请人" />
<el-input v-model="applyForUserName" placeholder="选择请选择申请人" @click.native="choiceWSSMR('wssmr', '请选择申请人', StandardApplyForEOPage.applyForUserIds)" />
</el-form-item>
<el-form-item class="el-form-item search-item" label="需求时间">
<el-input v-model="StandardApplyForEOPage.requiredTimeStart" clearable placeholder="请输入需求时间"></el-input>
<el-input v-model="StandardApplyForEOPage.requiredTime" clearable placeholder="请输入需求时间" />
</el-form-item>
<el-form-item class="el-form-item search-item" label="申请状态">
<el-select
@@ -81,7 +81,7 @@
class="drag-table"
row-key="id"
border
:loading="tableLoading"
v-loading="tableLoading"
:data="StandardApplyForEO"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', fontWeight: 'bold', height: '48px'}"
@selection-change="handleSelectionChange"
@@ -175,6 +175,12 @@
<standardsAndTranslationModal ref="standardsAndTranslationModalRef" @updateIndexList="getList" />
<detailModal ref="detailModalRef" />
<exportDialog ref="exportDialogRef" @exportData="exportName" />
<Role-tree
:is-title="drawerTitle"
:is-visible.sync="modalShowRoleFlag"
:nodeList="nodeList"
@checkedRole="checkedRole"
/>
</div>
</template>
@@ -199,6 +205,7 @@ export default {
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
},
applyForUserName: '',
StandardApplyForEO: [],
selectedList: [],
url: {
@@ -226,6 +233,10 @@ export default {
value: 'draft',
}
],
nodeList: [],
userType: '',
drawerTitle: '',
modalShowRoleFlag: false
}
},
mounted () {
@@ -237,12 +248,44 @@ export default {
this.getDicTypeListCode()
},
methods: {
checkedRole (data) {
let idList = ''
let nameList = ''
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.StandardApplyForEOPage.applyForUserIds = idList
this.applyForUserName = nameList
},
choiceWSSMR (type, title, id) {
this.nodeList = []
if(id) {
const nameId = id.split(',')
let idList = []
nameId.forEach(item => {
let a, b
a = item.substring(item.indexOf('(') + 1)
b = a.substring(0, a.lastIndexOf(')'))
idList.push(b)
})
idList = idList.join(',')
this.nodeList.push(idList)
}
this.userType = type
this.drawerTitle = title
this.modalShowRoleFlag = true
},
getDicTypeListCode () {
this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this
}, res => {
this.typeList = res.data.BZJYWTYPE // 标准类别
this.applicantUnitList = res.data.QCDW// 申请单位
this.applicantUnitList = res.data.GKGLBM // 归口管理部门
}, e => {
})
},
@@ -251,6 +294,7 @@ export default {
this.getList()
},
clearSerach () {
this.applyForUserName = ''
this.StandardApplyForEOPage = {
page: 1,
pageSize: this.$store.getters.userInfo.configContent