Commit e933a4dd by xiehao

fix:删除了试用范围

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