Commit f6b50e14 authored by dingyoujian's avatar dingyoujian

文档

parent 8a21b3d5
import request from 'common/src/utils/request'
/* 角色管理query */
export function doQuery(query) {
return request({
url: '/aqgl/jcsj/aqwdml/query',
method: 'post',
data: query||{}
})
}
/* 角色管理更新 */
export function doUpdate(query) {
return request({
url: '/aqgl/jcsj/aqwdml/update',
method: 'post',
data: query||{}
})
}
export function doAdd(query) {
return request({
url: '/aqgl/jcsj/aqwdml/add',
method: 'post',
data: query||{}
})
}
export function doDelete(query) {
return request({
url: '/aqgl/jcsj/aqwdml/delete',
method: 'post',
data: query||{}
})
}
export function doQueryDtl(query) {
return request({
url: '/aqgl/jcsj/aqwd/query',
method: 'post',
data: query||{}
})
}
/* 角色管理更新 */
export function doUpdateDtl(query) {
return request({
url: '/aqgl/jcsj/aqwd/update',
method: 'post',
data: query||{}
})
}
export function doAddDtl(query) {
return request({
url: '/aqgl/jcsj/aqwd/add',
method: 'post',
data: query||{}
})
}
export function doDeleteDtl(query) {
return request({
url: '/aqgl/jcsj/aqwd/delete',
method: 'post',
data: query||{}
})
}
...@@ -56,12 +56,6 @@ ...@@ -56,12 +56,6 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<!-- 按钮重写, -->
<!-- <div slot="reFooter">
<span slot="footer">
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div> -->
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
......
...@@ -82,13 +82,13 @@ ...@@ -82,13 +82,13 @@
}, },
{ {
prop: 'name', prop: 'name',
label: '标准名称', label: '目录名称',
width: '120' width: '200'
}, },
{ {
prop: 'bz', prop: 'bz',
label: '备注', label: '备注',
width: '600' width: '300'
} }
] ]
} }
......
...@@ -3,58 +3,59 @@ ...@@ -3,58 +3,59 @@
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="24">
<el-form-item label="项目管理" ref="appid" prop="appid"> <el-form-item label="标题" ref="title" prop="title">
<el-input :readonly="readonly" v-model="form.appid"></el-input> <el-input :readonly="readonly" v-model="form.title"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="标准" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="8">
<el-form-item label="发布日期" ref="appid" prop="appid"> <el-form-item label="发布日期" ref="fbrq" prop="fbrq">
<el-date-picker <el-date-picker
style="width: 100%;" style="width: 100%;"
type="date" :readonly="readonly"
placeholder="选择日期"> type="date"
</el-date-picker> v-model="form.fbrq"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="实施日期" ref="ssrq" prop="ssrq">
<el-date-picker
style="width: 100%;"
:readonly="readonly"
type="date"
v-model="form.ssrq"
placeholder="选择日期">
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="8">
<el-form-item label="实施日期" ref="name" prop="name"> <el-form-item label="发布部门" ref="bmid" prop="bmid">
<el-date-picker <el-select :disabled="readonly" style="width: 100%;" :filterable='true' v-model="form.bmid" placeholder="请选择">
style="width: 100%;" <el-option :key="index" v-for="(item,index) in bmList" :label="item.bmmc" :value="item.id">
type="date" </el-option>
placeholder="选择日期"> </el-select>
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="处理方法"> <el-form-item label="适用条款" ref="sytk" prop="content">
<el-input type="textarea" :readonly="readonly" v-model="form.bz"></el-input> <el-input :readonly="readonly" type="textarea" v-model="form.sytk"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="备注"> <el-form-item label="备注" ref="bz" prop="content">
<el-input type="textarea" :readonly="readonly" v-model="form.bz"></el-input> <el-input :readonly="readonly" type="textarea" v-model="form.bz"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<!-- 按钮重写, -->
<!-- <div slot="reFooter">
<span slot="footer">
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div> -->
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
...@@ -78,11 +79,12 @@ ...@@ -78,11 +79,12 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
appid: '', title: '',
name: '', sytk: '',
version: "", bz: "",
url: "", fbrq:new Date().getTime(),
bz: '' ssrq:new Date().getTime(),
mlid:this.app.app.singleItem.id
}, },
/* form提交时的规则,具体规则参考官网*/ /* form提交时的规则,具体规则参考官网*/
rules: { rules: {
......
...@@ -24,35 +24,21 @@ ...@@ -24,35 +24,21 @@
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
QueryAppversion, doQueryDtl,
QueryApptype, doAddDtl,
AddAppversion, doUpdateDtl,
DelAppversion, doDeleteDtl
UpdateAppversion } from "@/api/basicData/securityDocumentManagement.js";
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/ /* edit页面*/
import Edit from './lessEdit' import Edit from './lessEdit'
import {tableMixin} from 'common' import {tableMixin} from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'appVersion', name: 'securityDocumentManagementDtl',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
console.log('兄弟组件通信',this.$attrs.vMain.$refs.lessIndex,this.$attrs.vMain.$refs.mainIndex) console.log('兄弟组件通信',this.$attrs.vMain.$refs.lessIndex,this.$attrs.vMain.$refs.mainIndex)
await this.$asRun(
[QueryApptype(),
res => {
var data = res['data']['records'];
let typeMap = []
for (var i in data) {
typeMap[data[i].id] = data[i].name
}
this.systemType = data
this.typeMap = typeMap
}
]
)
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
...@@ -60,34 +46,29 @@ ...@@ -60,34 +46,29 @@
/*需要的额外参数 */ /*需要的额外参数 */
typeMap: [], typeMap: [],
systemType: [], systemType: [],
baseUrl: 'kzzx/appversion', baseUrl: 'aqgl/jcsj/aqwd',
/* 查询参数*/ /* 查询参数*/
queryParams: {}, queryParams: {},
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{ {
prop: 'name', prop: 'title',
label: '管理项目', label: '标题',
width: '120'
},
{
prop: 'name',
label: '标准',
width: '120' width: '120'
}, },
{ {
prop: 'whsj', prop: 'fbrq',
label: '发布时间', label: '发布日期',
...this.$common('ftDateTime') ...this.$common('ftDateTime')
}, },
{ {
prop: 'whsj', prop: 'ssrq',
label: '实施时间', label: '实施日期',
...this.$common('ftDateTime') ...this.$common('ftDateTime')
}, },
{ {
prop: 'name', prop: 'sytk',
label: '异常项处理方法', label: '适用条款',
width: '120' width: '120'
}, },
{ {
...@@ -100,14 +81,13 @@ ...@@ -100,14 +81,13 @@
}, },
methods: { methods: {
/* 基础查询*/ /* 基础查询*/
query: QueryAppversion, query: doQueryDtl,
/* 基础增*/ /* 基础增*/
apiAdd: AddAppversion, apiAdd: doAddDtl,
/* 基础更新*/ /* 基础更新*/
apiUpdate: UpdateAppversion, apiUpdate: doUpdateDtl,
/* 删除操作*/ /* 删除操作*/
apiDelete: DelAppversion, apiDelete: doDeleteDtl
/* 初始化赋值操作*/
}, },
/* 注册组件*/ /* 注册组件*/
components: { components: {
......
...@@ -55,33 +55,19 @@ ...@@ -55,33 +55,19 @@
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
QueryAppversion, doQuery,
QueryApptype, doAdd,
AddAppversion, doUpdate,
DelAppversion, doDelete
UpdateAppversion } from "@/api/basicData/securityDocumentManagement.js";
} from "common/src/api/system/dmgSystem.js";
/* edit页面*/ /* edit页面*/
import Edit from './edit' import Edit from './edit'
import {tableMixin} from 'common' import {tableMixin} from 'common'
export default { export default {
mixins: [tableMixin], mixins: [tableMixin],
name: 'appVersion', name: 'mainIndex',
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
await this.$asRun(
[QueryApptype(),
res => {
var data = res['data']['records'];
let typeMap = []
for (var i in data) {
typeMap[data[i].id] = data[i].name
}
this.systemType = data
this.typeMap = typeMap
}
]
)
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
...@@ -89,9 +75,11 @@ ...@@ -89,9 +75,11 @@
/*需要的额外参数 */ /*需要的额外参数 */
typeMap: [], typeMap: [],
systemType: [], systemType: [],
baseUrl: 'kzzx/appversion', baseUrl: 'aqgl/jcsj/aqwdml',
/* 查询参数*/ /* 查询参数*/
queryParams: {}, queryParams: {
},
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{ {
...@@ -101,27 +89,26 @@ ...@@ -101,27 +89,26 @@
}, },
{ {
prop: 'name', prop: 'name',
label: '标准名称', label: '目录名称',
width: '120' width: '200'
}, },
{ {
prop: 'bz', prop: 'bz',
label: '备注', label: '备注',
width: '600' width: '300'
} }
] ]
} }
}, },
methods: { methods: {
/* 基础查询*/ /* 基础查询*/
query: QueryAppversion, query: doQuery,
/* 基础增*/ /* 基础增*/
apiAdd: AddAppversion, apiAdd: doAdd,
/* 基础更新*/ /* 基础更新*/
apiUpdate: UpdateAppversion, apiUpdate: doUpdate,
/* 删除操作*/ /* 删除操作*/
apiDelete: DelAppversion, apiDelete: doDelete
/* 初始化赋值操作*/
}, },
/* 注册组件*/ /* 注册组件*/
components: { components: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment