|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="app-container">
|
|
|
+ <div class="">
|
|
|
<div v-if="isEdit == 1">
|
|
|
<!-- <el-header height="50px" class="header">
|
|
|
<el-page-header :content="funTitle()" @back=";($parent.isShow = 1), ($parent.id = '')" />
|
|
@@ -86,7 +86,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-row v-if="detail.imgSrc && $parent.$parent.$parent.isShow !== 5" class="img-box">
|
|
|
+ <el-row v-if="detail.imgSrc" class="img-box">
|
|
|
<el-col :span="24" class="item">
|
|
|
<div class="label" style="height: 150px">政策封面图</div>
|
|
|
<div class="value" style="height: 150px">
|
|
@@ -116,14 +116,6 @@
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row v-if="$parent.$parent.$parent.isShow == 5">
|
|
|
- <el-col :span="24" class="item">
|
|
|
- <div class="label" style="height: 150px">政策封面图</div>
|
|
|
- <div class="value" style="height: 150px">
|
|
|
- <ImageUpload :file-list="fileList" :multiple="false" />
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
<el-row v-if="this.$parent.$parent.$parent.isShow == 4">
|
|
|
<el-col :span="8" class="item">
|
|
|
<div class="label">审核人</div>
|
|
@@ -174,17 +166,6 @@
|
|
|
ex-text="导出货品"
|
|
|
:ex-params="{ policyId: detail.code }"
|
|
|
/>
|
|
|
-
|
|
|
- <el-upload
|
|
|
- v-if="$parent.$parent.$parent.isShow == 5"
|
|
|
- class="import-btn"
|
|
|
- :action="baseURL + 'student/import'"
|
|
|
- :http-request="handleImport"
|
|
|
- :file-list="importFileList"
|
|
|
- :show-file-list="false"
|
|
|
- >
|
|
|
- <el-button size="small">导入货品价格表</el-button>
|
|
|
- </el-upload>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="tr">
|
|
|
<!-- <el-button size="small" @click="$parent.isShow = 10"
|
|
@@ -266,30 +247,6 @@
|
|
|
{{ scope.row.status ? '启用' : '作废' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column
|
|
|
- label="操作"
|
|
|
- align="left"
|
|
|
- width="150"
|
|
|
- v-if="$parent.isShow == 5 && detail.examineStatus == 'SAVE'"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-popconfirm
|
|
|
- confirm-button-text="好的"
|
|
|
- cancel-button-text="不用了"
|
|
|
- icon="el-icon-info"
|
|
|
- icon-color="red"
|
|
|
- title="内容确定删除吗?"
|
|
|
- @onConfirm="hanleDelete(scope.row.id)"
|
|
|
- >
|
|
|
- <el-button
|
|
|
- slot="reference"
|
|
|
- type="text"
|
|
|
- class="textColor el-popover-left"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
- </el-popconfirm>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
</el-table>
|
|
|
<!-- 分页 -->
|
|
|
<div style="margin: 20px 0">
|
|
@@ -321,28 +278,10 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="left" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
- <template v-if="$parent.$parent.$parent.isShow == 5">
|
|
|
- <el-button type="text" size="small" @click="getCommonApi(scope.row)">编辑</el-button>
|
|
|
- <el-popconfirm
|
|
|
- confirm-button-text="好的"
|
|
|
- cancel-button-text="不用了"
|
|
|
- icon="el-icon-info"
|
|
|
- icon-color="red"
|
|
|
- title="内容确定删除吗?"
|
|
|
- @onConfirm="handleCondition(scope.row.id, scope.$index)"
|
|
|
- >
|
|
|
- <el-button slot="reference" type="text" class="textColor el-popover-left">删除</el-button>
|
|
|
- </el-popconfirm>
|
|
|
- </template>
|
|
|
<el-button
|
|
|
- v-else
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- @click="
|
|
|
- ;($parent.$parent.$parent.isShow = 10),
|
|
|
- ($parent.$parent.$parent.policyId = scope.row.id),
|
|
|
- $parent.$parent.$parent.isShow === 8 ? (detailFang = false) : (detailFang = true)
|
|
|
- "
|
|
|
+ @click="getCommonApi(scope.row)"
|
|
|
>查看条件</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -608,7 +547,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="$parent.$parent.$parent.isShow == 8 && detail.examineStatus == 'WAIT'"
|
|
|
+ v-if="$parent.$parent.$parent.isShow == 5 && detail.examineStatus == 'WAIT'"
|
|
|
class="descriptions diy-table-1"
|
|
|
>
|
|
|
<el-row>
|
|
@@ -635,14 +574,9 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <el-button v-if="$parent.$parent.$parent.isShow == 5" type="primary" size="default" @click="handleSave"
|
|
|
- >保存</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <EditCondition v-else :id="cid" :policy-id="cpolicyId" />
|
|
|
+ <AddCondition v-else :id="cid" @close="handleConditionClose"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -659,7 +593,7 @@ import {
|
|
|
updatePolicy,
|
|
|
getPolicyList
|
|
|
} from '@/api/policy_list'
|
|
|
-import EditCondition from './EditCondition'
|
|
|
+import AddCondition from './AddCondition'
|
|
|
import ImageUpload from '@/components/Common/image-upload.vue'
|
|
|
|
|
|
import { handleImport } from '@/utils/util'
|
|
@@ -675,7 +609,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
- EditCondition,
|
|
|
+ AddCondition,
|
|
|
ImageUpload
|
|
|
},
|
|
|
mixins: [Minxin],
|
|
@@ -767,6 +701,9 @@ export default {
|
|
|
},
|
|
|
created() {},
|
|
|
methods: {
|
|
|
+ handleConditionClose(){
|
|
|
+ this.isEdit = 1
|
|
|
+ },
|
|
|
funTitle() {
|
|
|
console.log()
|
|
|
let title = '详情页'
|
|
@@ -862,6 +799,7 @@ export default {
|
|
|
},
|
|
|
// 检查文件类型
|
|
|
checkFileType(url) {
|
|
|
+
|
|
|
if (!url) return ''
|
|
|
const fileSuffix = url.substring(url.lastIndexOf('.') + 1)
|
|
|
|
|
@@ -901,8 +839,9 @@ export default {
|
|
|
this.handletwoList()
|
|
|
},
|
|
|
getCommonApi(row) {
|
|
|
- ;(this.isEdit = 2), (this.cid = row.id), (this.cpolicyId = row.policyId)
|
|
|
- console.log(this.cpolicyId, this.detail.code, this.cpolicyId == this.detail.code)
|
|
|
+ this.isEdit = 2
|
|
|
+ this.cid = row.id
|
|
|
+ this.cpolicyId = row.policyId
|
|
|
},
|
|
|
getCond() {
|
|
|
this.listLoading = true
|