lion 3 years ago
parent 0b61927be7
commit 193955d7d6

@ -32,6 +32,9 @@
style="margin-left: 10px;">编辑</Button> style="margin-left: 10px;">编辑</Button>
<Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button> <Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
@ -372,9 +375,9 @@
align: "center" align: "center"
}, },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "format",
align: "center", align: "center",
width:180 width:180
}, },

@ -29,6 +29,9 @@
<el-tag v-if="scope.row[column.field]==2" type="success"></el-tag> <el-tag v-if="scope.row[column.field]==2" type="success"></el-tag>
<el-tag v-if="scope.row[column.field]==3" type="danger"></el-tag> <el-tag v-if="scope.row[column.field]==3" type="danger"></el-tag>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -239,9 +242,9 @@ import AvueMap from 'avue-plugin-map'
align: "center" align: "center"
}, },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "format",
align: "center", align: "center",
width:180 width:180
}, },

@ -29,6 +29,9 @@
<el-tag v-if="scope.row[column.field]==2" type="success"></el-tag> <el-tag v-if="scope.row[column.field]==2" type="success"></el-tag>
<el-tag v-if="scope.row[column.field]==3"></el-tag> <el-tag v-if="scope.row[column.field]==3"></el-tag>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -211,9 +214,9 @@ import AvueMap from 'avue-plugin-map'
align: "center" align: "center"
}, },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "format",
align: "center", align: "center",
width:180 width:180
}, },

@ -46,6 +46,9 @@
<div v-else-if="column.type=='ask_type_id'"> <div v-else-if="column.type=='ask_type_id'">
{{scope.row[column.field]}} {{scope.row[column.field]}}
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -416,16 +419,16 @@
width:120 width:120
}, },
{ {
field: "username", field: "user",
title: "提交人", title: "提交人",
type: "user", type: "format",
align: "center", align: "center",
width:180 width:180
}, },
{ {
field: "department_id", field: "department",
title: "提交科室", title: "提交科室",
type: "string", type: "format",
align: "center", align: "center",
width:180 width:180
}, },
@ -509,7 +512,7 @@
keyword: this.searchFields.KeyWord keyword: this.searchFields.KeyWord
}).then(response => { }).then(response => {
for(var m of response.data){ for(var m of response.data){
m.username = m.user?m.user.name:"" // m.username = m.user?m.user.name:""
m.ask_type_name = m.ask_type_detail?m.ask_type_detail.value:"" m.ask_type_name = m.ask_type_detail?m.ask_type_detail.value:""
m.ask_content_name = m.ask_content_detail?m.ask_content_detail.value:"" m.ask_content_name = m.ask_content_detail?m.ask_content_detail.value:""
} }

@ -24,6 +24,9 @@
style="margin-left: 10px;">编辑</Button> style="margin-left: 10px;">编辑</Button>
<Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button> <Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -211,30 +214,30 @@
align: "center" align: "center"
}, },
{ {
field: "area_id", field: "area",
title: "所属片区", title: "所属片区",
type: "string", type: "format",
align: "center" align: "center"
}, },
{ {
field: "maintain_id", field: "maintain",
title: "所属养护单位", title: "所属养护单位",
type: "string", type: "format",
align: "center" align: "center"
}, },
{ {
field: "group_id", field: "group",
title: "所属巡查养护组", title: "所属巡查养护组",
type: "string", type: "format",
align: "center" align: "center"
}, },
{ // {
field: "admin_id", // field: "admin_id",
title: "提交人", // title: "",
type: "string", // type: "string",
align: "center", // align: "center",
width:180 // width:180
}, // },
{ {
field: "created_at", field: "created_at",
title: "提交日期", title: "提交日期",

@ -24,6 +24,9 @@
style="margin-left: 10px;">编辑</Button> style="margin-left: 10px;">编辑</Button>
<Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button> <Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -158,9 +161,9 @@
align: "center" align: "center"
}, },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "format",
align: "center" align: "center"
}, },
{ {

@ -24,6 +24,9 @@
style="margin-left: 10px;">编辑</Button> style="margin-left: 10px;">编辑</Button>
<Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button> <Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -158,9 +161,9 @@
align: "center" align: "center"
}, },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "format",
align: "center" align: "center"
}, },
{ {

@ -31,6 +31,9 @@
</div> </div>
</div> </div>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -247,9 +250,9 @@
width:120 width:120
}, },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "format",
align: "center", align: "center",
width:120 width:120
}, },

@ -24,6 +24,9 @@
style="margin-left: 10px;">编辑</Button> style="margin-left: 10px;">编辑</Button>
<Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button> <Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -156,9 +159,9 @@
align: "center" align: "center"
}, },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "format",
align: "center" align: "center"
}, },
{ {

@ -50,6 +50,9 @@
<el-tag type="info" v-if="scope.row[column.field]==3">退</el-tag> <el-tag type="info" v-if="scope.row[column.field]==3">退</el-tag>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<!-- <div v-else-if="column.type=='end_type'"> <!-- <div v-else-if="column.type=='end_type'">
<el-tag v-if="scope.row[column.field]==0"></el-tag> <el-tag v-if="scope.row[column.field]==0"></el-tag>
<el-tag type="danger" v-if="scope.row[column.field]==1" >违法转办</el-tag> <el-tag type="danger" v-if="scope.row[column.field]==1" >违法转办</el-tag>
@ -797,9 +800,9 @@
// width:160 // width:160
// }, // },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "format",
align: "center", align: "center",
width: 180 width: 180
}, },

@ -53,6 +53,9 @@
<el-tag type="danger" v-if="scope.row[column.field]==4"></el-tag> <el-tag type="danger" v-if="scope.row[column.field]==4"></el-tag>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<!-- <div v-else-if="column.type=='end_type'"> <!-- <div v-else-if="column.type=='end_type'">
<el-tag v-if="scope.row[column.field]==0"></el-tag> <el-tag v-if="scope.row[column.field]==0"></el-tag>
<el-tag type="danger" v-if="scope.row[column.field]==1" >违法转办</el-tag> <el-tag type="danger" v-if="scope.row[column.field]==1" >违法转办</el-tag>
@ -845,9 +848,9 @@
// width:160 // width:160
// }, // },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "admin",
align: "center", align: "center",
width:180 width:180
}, },

@ -24,6 +24,9 @@
style="margin-left: 10px;">编辑</Button> style="margin-left: 10px;">编辑</Button>
<Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button> <Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button>
</div> </div>
<div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}}
</div>
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}</div>
</template> </template>
</el-table-column> </el-table-column>
@ -264,9 +267,9 @@
width:180 width:180
}, },
{ {
field: "admin_id", field: "admin",
title: "提交人", title: "提交人",
type: "string", type: "format",
align: "center", align: "center",
width:180 width:180
}, },

Loading…
Cancel
Save