标准/译文获取申请 标准类型/标准编号联动 主页标准编号回显

This commit is contained in:
baoyu
2024-03-28 15:31:45 +08:00
parent 55798724e6
commit 82ec704aa0
2 changed files with 20 additions and 8 deletions
@@ -45,6 +45,7 @@
v-model="StandardApplyForEO.standType" v-model="StandardApplyForEO.standType"
:placeholder="'请选择标准类型'" :placeholder="'请选择标准类型'"
clearable clearable
@change="selectStandType"
> >
<el-option <el-option
v-for="opt in standTypeList" v-for="opt in standTypeList"
@@ -55,7 +56,6 @@
{{ opt.label }} {{ opt.label }}
</el-option> </el-option>
</el-select> </el-select>
<!-- <el-select v-model="StandardApplyForEO.standType" placeholder="请选择标准类型" @change="selectStandType" />-->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@@ -168,11 +168,10 @@ export default {
}, },
methods: { methods: {
getDicTypeListCode () { getDicTypeListCode () {
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('/lawss/standardApplyFor/getStandTypeDropDownData', {}, {
_this: this _this: this
}, res => { }, res => {
this.typeList = res.data.BZJYWTYPE // 标准类别 this.standTypeList = res.data
this.standTypeList = res.data.BZJYWSTADNTYPE
}, e => { }, e => {
}) })
}, },
@@ -198,7 +197,16 @@ export default {
this.$refs.addFormRef.clearValidate() this.$refs.addFormRef.clearValidate()
}) })
}, },
selectStandType () { selectStandType (value) {
if (value === '') {
this.standLbList = []
}
this.$http.get('/lawss/standardApplyFor/getStandLbDropDownData', { dicId: value },res=>{
if (res.ok) {
this.standLbList = res.data
}
this.standLbList = []
})
}, },
submit () { submit () {
this.$refs.addFormRef.validate((valid) => { this.$refs.addFormRef.validate((valid) => {
@@ -116,7 +116,11 @@
width="150" width="150"
align="center" align="center"
prop="standNum" prop="standNum"
/> >
<template slot-scope="scope">
{{ scope.row.standLb }}{{ scope.row.standName }}{{ scope.row.standYear}}
</template>
</el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
label="标准名称" label="标准名称"
@@ -159,8 +163,8 @@
<el-table-column label="操作" align="center" width="200" fixed="right"> <el-table-column label="操作" align="center" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="table-operate-btn" @click="toView(scope.row)">查看</div> <div class="table-operate-btn" @click="toView(scope.row)">查看</div>
<div class="table-operate-btn" v-show="scope.row.status==='pendingApproval'" @click="batchPass([scope.row.id])">通过</div> <div v-show="scope.row.status==='pendingApproval'" class="table-operate-btn" @click="batchPass([scope.row.id])">通过</div>
<div class="table-operate-btn" v-show="scope.row.status==='pendingApproval'" @click="batchOverrule([scope.row.id])">驳回</div> <div v-show="scope.row.status==='pendingApproval'" class="table-operate-btn" @click="batchOverrule([scope.row.id])">驳回</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>