|
|
|
@ -2,14 +2,42 @@
|
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
|
|
|
<head>
|
|
|
|
|
<th:block th:include="include :: header('新增载体制作')" />
|
|
|
|
|
<th:block th:include="include :: select2-css" />
|
|
|
|
|
<th:block th:include="include :: bootstrap-select-css" />
|
|
|
|
|
<!-- <th:block th:include="include :: select2-css" />-->
|
|
|
|
|
<!-- <th:block th:include="include :: bootstrap-select-css" />-->
|
|
|
|
|
<th:block th:include="include :: datetimepicker-css" />
|
|
|
|
|
</head>
|
|
|
|
|
<body class="white-bg">
|
|
|
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
|
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content" id="app">
|
|
|
|
|
<form class="form-horizontal m" id="form-fileprovide-add" th:object="${tdCarrier}">
|
|
|
|
|
<input name="id" th:field="*{id}" type="hidden">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">所属地市:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select id="City" name="areaCity" required @change="getAreaList()" v-model="City" class="form-control">
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
<option v-for="option in CityList" :value="option.id" :key="option.id">
|
|
|
|
|
{{ option.name }}
|
|
|
|
|
</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">所属区县:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select id="Area" name="areaDistrict" required v-model="Area" class="form-control">
|
|
|
|
|
<option value="">请选择</option>
|
|
|
|
|
<option v-for="option in AreaList" :value="option.id" :key="option.id">
|
|
|
|
|
{{ option.name }}
|
|
|
|
|
</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
@ -23,7 +51,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">载体类型:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select name="carrierLevel" required class="form-control m-b" th:with="type=${@dict.getType('sys_provide_level')}">
|
|
|
|
|
<select name="carrierLevel" required class="form-control" th:with="type=${@dict.getType('sys_provide_level')}">
|
|
|
|
|
<option value="">---请选择---</option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierLevel}"></option>
|
|
|
|
|
</select>
|
|
|
|
@ -44,7 +72,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">密级:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select name="carrierSecret" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
|
|
|
|
|
<select name="carrierSecret" required class="form-control" th:with="type=${@dict.getType('sys_file_miji')}">
|
|
|
|
|
<option value="">---请选择---</option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierSecret}"></option>
|
|
|
|
|
</select>
|
|
|
|
@ -57,7 +85,7 @@
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">紧急程度:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select name="carrierExtent" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
|
|
|
|
|
<select name="carrierExtent" required class="form-control" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
|
|
|
|
|
<option value="">---请选择---</option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{carrierExtent}"></option>
|
|
|
|
|
</select>
|
|
|
|
@ -84,7 +112,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-4 control-label is-required">发放范围:</label>
|
|
|
|
|
<label class="col-sm-4 control-label">发放范围:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="carrierContent" placeholder="请输入发放范围" th:field="*{carrierContent}" required class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
@ -94,7 +122,7 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-2 control-label is-required">定密依据:</label>
|
|
|
|
|
<label class="col-sm-2 control-label">定密依据:</label>
|
|
|
|
|
<div class="col-sm-10">
|
|
|
|
|
<textarea name="carrierAlliance" th:field="*{carrierAlliance}" placeholder="请输入定密依据" required class="form-control" type="text"></textarea>
|
|
|
|
|
</div>
|
|
|
|
@ -104,30 +132,61 @@
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
<th:block th:include="include :: select2-js" />
|
|
|
|
|
<th:block th:include="include :: bootstrap-select-js" />
|
|
|
|
|
<!--<th:block th:include="include :: select2-js" />-->
|
|
|
|
|
<!--<th:block th:include="include :: bootstrap-select-js" />-->
|
|
|
|
|
<th:block th:include="include :: datetimepicker-js" />
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
var prefix = ctx + "system/carrier"
|
|
|
|
|
$("#form-fileprovide-add").validate({
|
|
|
|
|
focusCleanup: true
|
|
|
|
|
});
|
|
|
|
|
var app = new Vue({
|
|
|
|
|
el: '#app',
|
|
|
|
|
data: {
|
|
|
|
|
CityList: [],
|
|
|
|
|
AreaList:[],
|
|
|
|
|
City:[[${tdCarrier.areaCity}]],
|
|
|
|
|
Area:[[${tdCarrier.areaDistrict}]],
|
|
|
|
|
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 submitHandler() {
|
|
|
|
|
if ($.validate.form()) {
|
|
|
|
|
$.operate.save(prefix + "/add", $('#form-fileprovide-add').serialize());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$("input[name='provideDate']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
minView: "month",
|
|
|
|
|
autoclose: true
|
|
|
|
|
});
|
|
|
|
|
$(function() {
|
|
|
|
|
$('#targetDepart').select2({
|
|
|
|
|
placeholder: "请选择接收单位",
|
|
|
|
|
allowClear: true
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|