Commit 696da117 by 史敦盼

bug修复

1 parent a4fc00eb
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 8px;
height: 8px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background-color: #fff; background-color: #fff;
......
...@@ -461,7 +461,6 @@ ...@@ -461,7 +461,6 @@
v-model="ruleForm.let4" v-model="ruleForm.let4"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
<div <div
...@@ -510,11 +509,7 @@ ...@@ -510,11 +509,7 @@
label="长度" label="长度"
align="center" align="center"
></el-table-column> --> ></el-table-column> -->
<el-table-column <el-table-column prop="controlType" label="控件" align="center">
prop="controlType"
label="控件"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.controlType == 0">单行文本框</span> <span v-if="scope.row.controlType == 0">单行文本框</span>
<span v-if="scope.row.controlType == 1">多行文本框</span> <span v-if="scope.row.controlType == 1">多行文本框</span>
...@@ -641,7 +636,9 @@ ...@@ -641,7 +636,9 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="greenButton" v-debounce:click="save_dicy">保存</el-button> <el-button class="greenButton" v-debounce:click="save_dicy"
>保存</el-button
>
<el-button @click="dicy_dialog = false">取消</el-button> <el-button @click="dicy_dialog = false">取消</el-button>
</span> </span>
</el-dialog> </el-dialog>
...@@ -902,39 +899,38 @@ export default { ...@@ -902,39 +899,38 @@ export default {
scopeApplicationOptions: [], scopeApplicationOptions: [],
rowData: {}, rowData: {},
predefineColors: archiEleColor, predefineColors: archiEleColor,
graphId: '' graphId: '',
} }
}, },
created(){ created() {
Promise.all([ Promise.all([this.get_dialog_select1(), this.get_dialog_select2()]).then(
this.get_dialog_select1(), (res2) => {
this.get_dialog_select2(),
]).then((res2) => {
this.dialog_select1 = res2[0] this.dialog_select1 = res2[0]
this.search_select1 = res2[1] this.search_select1 = res2[1]
this.get_table() this.get_table()
}) },
)
this.getStateList() this.getStateList()
this.getScopeApplicationOptions() this.getScopeApplicationOptions()
}, },
mounted() { mounted() {
window.addEventListener('resize', () => { window.addEventListener('resize', () => {
this.set_table_height() this.set_table_height()
}) })
this.set_table_height() this.set_table_height()
}, },
methods: { methods: {
// 适用范围 // 适用范围
getScopeApplicationOptions(){ getScopeApplicationOptions() {
query_jia_gou_ceng_ci_new({"typeValue": "scope_application"}).then(res => { query_jia_gou_ceng_ci_new({ typeValue: 'scope_application' }).then(
(res) => {
this.scopeApplicationOptions = res.data this.scopeApplicationOptions = res.data
}) },
)
}, },
// 状态 // 状态
getStateList(){ getStateList() {
query_jia_gou_ceng_ci_new({"typeValue": "sys_state"}).then(res => { query_jia_gou_ceng_ci_new({ typeValue: 'sys_state' }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.stateList = res.data this.stateList = res.data
} }
...@@ -1351,12 +1347,17 @@ export default { ...@@ -1351,12 +1347,17 @@ export default {
referenceRelationship: this.ruleForm.referenceRelationship, referenceRelationship: this.ruleForm.referenceRelationship,
example: this.ruleForm.example, example: this.ruleForm.example,
scope: this.ruleForm.scope, scope: this.ruleForm.scope,
graphId: this.graphId graphId: this.graphId,
} }
const requestParams = const requestParams =
this.is_add_edit == 'add' this.is_add_edit == 'add'
? params ? params
: { ...params, elementId: this.elementId, version: this.version, archiBelongId: this.rowData.archiBelongId } : {
...params,
elementId: this.elementId,
version: this.version,
archiBelongId: this.rowData.archiBelongId,
}
if (this.is_add_edit == 'add') { if (this.is_add_edit == 'add') {
add_jia_gou_yuan_su(requestParams).then((res) => { add_jia_gou_yuan_su(requestParams).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -1430,7 +1431,7 @@ export default { ...@@ -1430,7 +1431,7 @@ export default {
referenceRelationship: this.ruleForm.referenceRelationship, referenceRelationship: this.ruleForm.referenceRelationship,
example: this.ruleForm.example, example: this.ruleForm.example,
scope: this.ruleForm.scope, scope: this.ruleForm.scope,
graphId: this.graphId graphId: this.graphId,
} }
const requestParams = const requestParams =
this.is_add_edit == 'add' this.is_add_edit == 'add'
...@@ -1525,7 +1526,7 @@ export default { ...@@ -1525,7 +1526,7 @@ export default {
//查询架构层次下拉框值 //查询架构层次下拉框值
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// query_jia_gou_ceng_ci({}).then((res) => { // query_jia_gou_ceng_ci({}).then((res) => {
query_jia_gou_ceng_ci_new({"typeValue": "archi_level"}).then(res => { query_jia_gou_ceng_ci_new({ typeValue: 'archi_level' }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
resolve(res.data) resolve(res.data)
} else { } else {
...@@ -1561,7 +1562,7 @@ export default { ...@@ -1561,7 +1562,7 @@ export default {
//查询架构归属下拉框值 //查询架构归属下拉框值
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
// query_jia_gou_gui_shu({}).then((res) => { // query_jia_gou_gui_shu({}).then((res) => {
query_jia_gou_ceng_ci_new({"typeValue": "archi_belong"}).then(res => { query_jia_gou_ceng_ci_new({ typeValue: 'archi_belong' }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
resolve(res.data) resolve(res.data)
} else { } else {
...@@ -1580,6 +1581,7 @@ export default { ...@@ -1580,6 +1581,7 @@ export default {
this.query_item1 = null this.query_item1 = null
this.query_item3 = null this.query_item3 = null
this.query_item4 = null this.query_item4 = null
this.queryParamsScope = null
}, },
// 每页条数改变 // 每页条数改变
handleSizeChange(val) { handleSizeChange(val) {
...@@ -1602,7 +1604,7 @@ export default { ...@@ -1602,7 +1604,7 @@ export default {
elementName: this.query_item3, elementName: this.query_item3,
pageSize: this.pager.size, pageSize: this.pager.size,
state: this.query_item4, state: this.query_item4,
scope: this.queryParamsScope scope: this.queryParamsScope,
} }
this.loading = true this.loading = true
query_jia_gou_yuan_su_guan_xi_table(params).then((result) => { query_jia_gou_yuan_su_guan_xi_table(params).then((result) => {
...@@ -1686,7 +1688,7 @@ export default { ...@@ -1686,7 +1688,7 @@ export default {
state: 0, state: 0,
version: row.version, version: row.version,
elementName: row.elementName, elementName: row.elementName,
archiBelongId: row.archiBelongId archiBelongId: row.archiBelongId,
} }
edit_jia_gou_yuan_su(params).then((res) => { edit_jia_gou_yuan_su(params).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -1725,7 +1727,7 @@ export default { ...@@ -1725,7 +1727,7 @@ export default {
state: 1, state: 1,
version: row.version, version: row.version,
elementName: row.elementName, elementName: row.elementName,
archiBelongId: row.archiBelongId archiBelongId: row.archiBelongId,
} }
edit_jia_gou_yuan_su(params).then((res) => { edit_jia_gou_yuan_su(params).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -1763,7 +1765,7 @@ export default { ...@@ -1763,7 +1765,7 @@ export default {
elementId: row.elementId, elementId: row.elementId,
state: row.state, state: row.state,
delFlag: 1, delFlag: 1,
elementName: row.elementName elementName: row.elementName,
} }
delete_jia_gou_gui_shu(params).then((res) => { delete_jia_gou_gui_shu(params).then((res) => {
if (res.code == 200) { if (res.code == 200) {
......
...@@ -48,19 +48,14 @@ export default { ...@@ -48,19 +48,14 @@ export default {
default: false, default: false,
}, },
}, },
watch: { watch: {},
// prjCodeDetail(v){
// this.query.queryParam.prjCode = v
// this.search()
// },
},
data() { data() {
return { return {
query: { query: {
url: collectDataConfiguration, url: collectDataConfiguration,
method: 'post', method: 'post',
queryParam: { queryParam: {
prjCode: '', supervId: '',
}, },
}, },
selectId: '', selectId: '',
...@@ -98,10 +93,10 @@ export default { ...@@ -98,10 +93,10 @@ export default {
methods: { methods: {
handleClose() { handleClose() {
this.showDialog = false this.showDialog = false
this.query.queryParam.prjCode = '' this.query.queryParam.supervId = ''
}, },
handleOpen() { handleOpen() {
this.query.queryParam.prjCode = this.prjCodeDetail this.query.queryParam.supervId = this.prjCodeDetail
this.search() this.search()
}, },
async search() { async search() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!