This commit is contained in:
zhutianqi
2021-11-24 15:35:33 +08:00
parent ec9cfd7c98
commit 9ae061cc00
@@ -65,22 +65,22 @@
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column :label="this.$t('m.textState')" width="150" align="center"> <el-table-column :label="this.$t('m.textState')" width="150" align="center" prop="fileType">
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
{{ <!-- {{-->
scope.row.fileType === "STAND_FILE" <!-- scope.row.fileType === "STAND_FILE"-->
? "标准文本" <!-- ? "标准文本"-->
: scope.row.fileType === "DRAFT_FILE" <!-- : scope.row.fileType === "DRAFT_FILE"-->
? "草案" <!-- ? "草案"-->
: scope.row.fileType === "OPINION_FILE" <!-- : scope.row.fileType === "OPINION_FILE"-->
? "征求意见稿" <!-- ? "征求意见稿"-->
: scope.row.fileType === "SENT_SCREEN_FILE" <!-- : scope.row.fileType === "SENT_SCREEN_FILE"-->
? "送审稿" <!-- ? "送审稿"-->
: scope.row.fileType === "APPROVAL_FILE" <!-- : scope.row.fileType === "APPROVAL_FILE"-->
? "报批稿" <!-- ? "报批稿"-->
: "关联文件" <!-- : "关联文件"-->
}} <!-- }}-->
</template> <!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="resultContent" prop="resultContent"
@@ -203,9 +203,9 @@
<el-select class="bead-input" v-model="uploadFilesdfEo.fileType"> <el-select class="bead-input" v-model="uploadFilesdfEo.fileType">
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.id"
:label="item.label" :label="item.attrName"
:value="item.value" :value="item.attrName"
> >
</el-option> </el-option>
</el-select> </el-select>
@@ -713,6 +713,7 @@
</template> </template>
<script> <script>
import axios from 'axios'
export default { export default {
name: "StandardRecognition", name: "StandardRecognition",
components: {}, components: {},
@@ -784,30 +785,30 @@ export default {
] ]
}, },
options: [ options: [
{ // {
value: "STAND_FILE", // value: "STAND_FILE",
label: "标准文本", // label: "标准文本",
}, // },
{ // {
value: "DRAFT_FILE", // value: "DRAFT_FILE",
label: "草案", // label: "草案",
}, // },
{ // {
value: "OPINION_FILE", // value: "OPINION_FILE",
label: "征求意见稿", // label: "征求意见稿",
}, // },
{ // {
value: "SENT_SCREEN_FILE", // value: "SENT_SCREEN_FILE",
label: "送审稿", // label: "送审稿",
}, // },
{ // {
value: "APPROVAL_FILE", // value: "APPROVAL_FILE",
label: "报批稿", // label: "报批稿",
}, // },
{ // {
value: "RELEVANCE_FILE", // value: "RELEVANCE_FILE",
label: "关联文件", // label: "关联文件",
}, // },
], ],
/* standRecoColumn: [ /* standRecoColumn: [
{ {
@@ -1340,8 +1341,8 @@ export default {
).standName; ).standName;
// this.uploadFilesdfEo.fileType = JSON.parse(JSON.stringify(row)).fileType // this.uploadFilesdfEo.fileType = JSON.parse(JSON.stringify(row)).fileType
this.options.map((item) => { this.options.map((item) => {
if (item.value === JSON.parse(JSON.stringify(row)).fileType) { if (item.attrName === JSON.parse(JSON.stringify(row)).fileType) {
this.uploadFilesdfEo.fileType = item.label; this.uploadFilesdfEo.fileType = item.attrName;
} }
}); });
this.uploadFilesdfEo.id = JSON.parse(JSON.stringify(row)).id; this.uploadFilesdfEo.id = JSON.parse(JSON.stringify(row)).id;
@@ -1528,6 +1529,12 @@ export default {
computed: {}, computed: {},
created() {}, created() {},
mounted() { mounted() {
this.$http.get('lawss/sarStandAttrDetails/getListData', '', {
_this: this
}, res => {
this.options = res.data
console.log(this.options);
})
this.getTableData(); this.getTableData();
}, },
destroyed() {}, destroyed() {},