|
|
@ -4,7 +4,7 @@
|
|
|
|
<th:block th:include="include :: header('检查报告管理列表')" />
|
|
|
|
<th:block th:include="include :: header('检查报告管理列表')" />
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body class="gray-bg">
|
|
|
|
<body class="gray-bg">
|
|
|
|
<div class="container-div">
|
|
|
|
<div class="container-div" id="app">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
<form id="formId">
|
|
|
|
<form id="formId">
|
|
|
@ -16,11 +16,21 @@
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<label>所属市州:</label>
|
|
|
|
<label>所属市州:</label>
|
|
|
|
<input type="text" name="framework"/>
|
|
|
|
<select id="City" name="framework" @change="getAreaList()" v-model="City">
|
|
|
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
|
|
|
<option v-for="option in CityList" :value="option.id" :key="option.id">
|
|
|
|
|
|
|
|
{{ option.name }}
|
|
|
|
|
|
|
|
</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<label>所属区县:</label>
|
|
|
|
<label>所属区县:</label>
|
|
|
|
<input type="text" name="area"/>
|
|
|
|
<select id="Area" name="area" v-model="Area">
|
|
|
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
|
|
|
<option v-for="option in AreaList" :value="option.id" :key="option.id">
|
|
|
|
|
|
|
|
{{ option.name }}
|
|
|
|
|
|
|
|
</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<label>检查状态:</label>
|
|
|
|
<label>检查状态:</label>
|
|
|
@ -72,7 +82,15 @@
|
|
|
|
var checkcontentryxmsjjtDatas = [[${@dict.getType('sys_check_state')}]];
|
|
|
|
var checkcontentryxmsjjtDatas = [[${@dict.getType('sys_check_state')}]];
|
|
|
|
var checkcontentryxmsjotherjtDatas = [[${@dict.getType('sys_check_state')}]];
|
|
|
|
var checkcontentryxmsjotherjtDatas = [[${@dict.getType('sys_check_state')}]];
|
|
|
|
var prefix = ctx + "system/check";
|
|
|
|
var prefix = ctx + "system/check";
|
|
|
|
|
|
|
|
let datas = []
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: ctx + "system/area/getAllList",
|
|
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
|
|
data:{parentId:''} ,
|
|
|
|
|
|
|
|
success:((res)=>{
|
|
|
|
|
|
|
|
datas = res.data
|
|
|
|
|
|
|
|
}) ,
|
|
|
|
|
|
|
|
});
|
|
|
|
$(function() {
|
|
|
|
$(function() {
|
|
|
|
var options = {
|
|
|
|
var options = {
|
|
|
|
url: prefix + "/list",
|
|
|
|
url: prefix + "/list",
|
|
|
@ -91,12 +109,18 @@
|
|
|
|
visible: false
|
|
|
|
visible: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'area',
|
|
|
|
field: 'framework',
|
|
|
|
title: '所属区县'
|
|
|
|
title: '所属市州',
|
|
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
|
|
return getCity(datas, value)
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'framework',
|
|
|
|
field: 'area',
|
|
|
|
title: '所属市州'
|
|
|
|
title: '所属区县',
|
|
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
|
|
return getCity(datas, value)
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'user',
|
|
|
|
field: 'user',
|
|
|
@ -132,6 +156,48 @@
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$.table.init(options);
|
|
|
|
$.table.init(options);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
var app = new Vue({
|
|
|
|
|
|
|
|
el: '#app',
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
CityList: [],
|
|
|
|
|
|
|
|
AreaList:[],
|
|
|
|
|
|
|
|
City:'',
|
|
|
|
|
|
|
|
Area:'',
|
|
|
|
|
|
|
|
params:{
|
|
|
|
|
|
|
|
parentId:'',
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted(){
|
|
|
|
|
|
|
|
// 初始化地市列表
|
|
|
|
|
|
|
|
this.getCityList();
|
|
|
|
|
|
|
|
if (this.City){
|
|
|
|
|
|
|
|
this.getAreaList()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods:{
|
|
|
|
|
|
|
|
getCityList(){
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: ctx + "system/area/getSysAreaList",
|
|
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
|
|
data:this.params ,
|
|
|
|
|
|
|
|
success:((res)=>{
|
|
|
|
|
|
|
|
this.CityList = res.data
|
|
|
|
|
|
|
|
}) ,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getAreaList(){
|
|
|
|
|
|
|
|
this.params.parentId = this.City
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: ctx + "system/area/getSysAreaList",
|
|
|
|
|
|
|
|
type: 'GET',
|
|
|
|
|
|
|
|
data:this.params,
|
|
|
|
|
|
|
|
success:((res)=>{
|
|
|
|
|
|
|
|
this.AreaList = res.data
|
|
|
|
|
|
|
|
}) ,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
function selfcheck(id) {
|
|
|
|
function selfcheck(id) {
|
|
|
|
var url ='/system/check/selfcheck/' + id;
|
|
|
|
var url ='/system/check/selfcheck/' + id;
|
|
|
|
$.modal.open("检查管理", url);
|
|
|
|
$.modal.open("检查管理", url);
|
|
|
|