Commit e933a4dd by xiehao

fix:删除了试用范围

1 parent fdac565e
......@@ -4,11 +4,11 @@
import { EADC_ARRCHITECTURE, EADC_KNOWLEDGE_POOL, EADC_SHARED_ABILITY } from '@/config/micromodule'
// 收集资料配置 查询
export const collectDataSearch = EADC_ARRCHITECTURE + '/Collect/CollectInformation/'
export const collectDataSearch = EADC_ARRCHITECTURE + '/collect/collectInformation/'
// 弹框内表格查询 prjCode: 不传 查全部 选择传,拼接的id
export const collectDataConfiguration = EADC_ARRCHITECTURE + '/Collect/information/'
export const collectDataConfiguration = EADC_ARRCHITECTURE + '/collect/information/'
// 督查材料收集 查询
export const supervisionData = EADC_ARRCHITECTURE + '/Collect/supervisionData/'
export const supervisionData = EADC_ARRCHITECTURE + '/collect/supervisionData/'
// 架构督查分析 查询 tab1 tab2
export const architectureInspectionAnalysis = EADC_ARRCHITECTURE + '/supervIndex/selectSupervIndex'
export const selectSupervAnalysis = EADC_ARRCHITECTURE + '/supervAnalysis/selectSupervAnalysis'
......
......@@ -208,7 +208,7 @@ export default {
materialType,
supervision: this.rowData.supervision
}
let url = !this.edit ? '/Collect/ad' : '/Collect/upd' // 编辑
let url = !this.edit ? '/collect/ad' : '/collect/upd' // 编辑
this.$postRequest(url, params).then(res => {
if (res.code === 200) {
loading.close()
......
......@@ -46,19 +46,17 @@ export default {
if(v){
this.columns = [
{ label: '序号', type: 'index', width: '80px' },
{ label: '单位', prop: 'manageDeptId', width: '150px' },
{ label: '单位', prop: 'manageDeptName', width: '150px' },
{ label: '项目名称', prop: 'prjName', },
{ label: '项目经理', prop: 'projectManager', width: '200px' },
{ label: '创建人', prop: 'createMan', width: '150px' },
]
}else{
this.columns = [
{ type: 'selection', width: '55px' },
{ label: '序号', type: 'index', width: '80px' },
{ label: '单位', prop: 'manageDeptId', width: '150px' },
{ label: '单位', prop: 'manageDeptName', width: '150px' },
{ label: '项目名称', prop: 'prjName', },
{ label: '项目经理', prop: 'projectManager', width: '200px' },
{ label: '创建人', prop: 'createMan', width: '150px' },
]
}
},
......
......@@ -3,11 +3,11 @@
<list-page>
<!-- 查询表单插槽 -->
<template #formWrap>
<SearchForm @onSearch="querySearch" :form-options="formOptions" />
<SearchForm @onSearch="querySearch" :form-options="formOptions"/>
</template>
<!-- 中部操作按钮 -->
<template #operationWrap>
<el-button type="primary" icon="el-icon-document-add" size="medium" plain @click="fnAdd">新建</el-button >
<el-button type="primary" icon="el-icon-document-add" size="medium" plain @click="fnAdd">新建</el-button>
</template>
<!-- 表格插槽 -->
<template #tableWrap>
......@@ -18,8 +18,8 @@
id-key="elementId"
>
<template #supervision="{ data }">
<el-button v-if="data.row.supervision" class="detailBtn" size="medium" @click="detailBtn( data.row)">{{data.row.supervision}}</el-button >
<span v-else>{{data.row.supervision}}</span>
<el-button v-if="data.row.supervision" class="detailBtn" size="medium" @click="detailBtn( data.row)">{{ data.row.supervision }}</el-button>
<span v-else>{{ data.row.supervision }}</span>
</template>
</table-config>
</template>
......@@ -43,14 +43,14 @@ import AddTabelList from './AddTabelList.vue'
import ListPage from '@/components/ListPage.vue'
import SearchForm from '@/components/SearchForm.vue'
import TableConfig from './TableConfig.vue'
import { collectDataSearch } from '@/api/architectureInspection'
import {collectDataSearch} from '@/api/architectureInspection'
import Add from './Add.vue'
import Detail from './Detail.vue'
import { materialTypeList, stateCode } from '@/utils/architectureInspectionDis'
import {materialTypeList, stateCode} from '@/utils/architectureInspectionDis'
export default {
name: 'collectDataConfiguration',
components: { ListPage, SearchForm, TableConfig, Add, AddTabelList, Detail },
components: {ListPage, SearchForm, TableConfig, Add, AddTabelList, Detail},
computed: {
formOptions() {
return [
......@@ -64,15 +64,14 @@ export default {
},
columns() {
return [
{ label: '序号', type: 'index', width: '80px' },
{ label: '督查方案名称', prop: 'supervName', },
{ label: '创建时间', prop: 'createTime', width: '120px' },
{ label: '材料类型', prop: 'materialType',
{label: '序号', type: 'index', width: '80px'},
{label: '督查方案名称', prop: 'supervName',},
{
label: '材料类型', prop: 'materialType',
collectionType: 'materialTypeList',
options: materialTypeList
},
{ label: '截止时间', prop: 'endTime', width: '120px' },
{ label: '督查清单', prop: 'supervision', __slotName: 'supervision', },
{label: '督查清单', prop: 'supervision', __slotName: 'supervision',},
{
label: '状态',
prop: 'state',
......@@ -80,7 +79,9 @@ export default {
collectionType: 'stateCode',
options: stateCode,
},
{ label: '备注', prop: 'notes', width: '100px' },
{label: '备注', prop: 'notes', width: '100px'},
{label: '创建时间', prop: 'createTime', width: '120px'},
{label: '截止时间', prop: 'endTime', width: '120px'},
{
label: '操作',
type: 'operation',
......@@ -124,7 +125,7 @@ export default {
]
},
},
data(){
data() {
return {
query: {
url: collectDataSearch,
......@@ -192,7 +193,7 @@ export default {
...row,
state: 2,
}
this.$postRequest('/Collect/fb', {...row}).then(res => {
this.$postRequest('/collect/fb', {...row}).then(res => {
if (res.code === 200) {
this.$message.success('发布成功')
this.$refs.searchTable.queryData()
......@@ -201,7 +202,8 @@ export default {
}
})
})
.catch(() => {})
.catch(() => {
})
},
fnDel(row) {
this.$confirm('是否确认删除?', '提示', {
......@@ -214,7 +216,7 @@ export default {
...row,
delFlag: 1,
}
this.$postRequest('/Collect/del', {supervId: row.supervId}).then(res => {
this.$postRequest('/collect/del', {supervId: row.supervId}).then(res => {
if (res.code === 200) {
this.$message.success('删除成功')
this.$refs.searchTable.queryData()
......@@ -223,7 +225,8 @@ export default {
}
})
})
.catch(() => {})
.catch(() => {
})
},
fnEdit(row) {
this.dialogTitle = '收集资料配置'
......@@ -231,18 +234,18 @@ export default {
this.visible = true
this.isEdit = true
},
addList(){
addList() {
this.detailTitle = '督查清单'
this.detailPrjCode = ''
this.visibleDetail = true
},
// 督查清单 详情
detailBtn(v){
detailBtn(v) {
this.detailTitle = '详情'
this.detailPrjCode = v.supervision
this.visibleDetail = true
},
selectTabel(v){
selectTabel(v) {
let id = this.rowData.supervision
let arrV = v.split(',')
let arrId = id.split(',')
......@@ -255,7 +258,7 @@ export default {
</script>
<style lang="scss" scoped>
.detailBtn{
.detailBtn {
border: none;
background: none;
color: #0d867f;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!