对接法规/认证任务计划、设定

This commit is contained in:
qq787203167
2022-04-21 18:35:25 +08:00
parent 4b90f6308b
commit 714efbcf08
4 changed files with 39 additions and 17 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
data() { data() {
return { return {
tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)}, tokenHeader: {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)},
importUrl: window._CONFIG['domianURL'] + this.url.importZipUrl, importUrl: window._CONFIG['domianURL'] +'/'+ this.url.importZipUrl,
cut: '', cut: '',
} }
}, },
@@ -100,7 +100,7 @@
</div> </div>
<div class="process-content-right-xian"></div> <div class="process-content-right-xian"></div>
</div> </div>
<a-tabs default-active-key="1" class="ant-tabs"> <a-tabs style="margin-top: 20px" default-active-key="1" class="ant-tabs">
<a-tab-pane key="1" :tab="$t('DeliverableStatus')"> <a-tab-pane key="1" :tab="$t('DeliverableStatus')">
<div class="box-content"> <div class="box-content">
<div class="box-content-left"> <div class="box-content-left">
@@ -149,8 +149,9 @@
add: 'project/projectLibraryBase/add', add: 'project/projectLibraryBase/add',
edit: 'project/projectLibraryBase/edit', edit: 'project/projectLibraryBase/edit',
queryByProjectId: 'project/projectTaskPlanning/queryByProjectId', queryByProjectId: 'project/projectTaskPlanning/queryByProjectId',
addSettingUrl:'project/projectTaskPlanning/add', addSettingUrl: 'project/projectTaskPlanning/add',
editSettingUrl:'project/projectTaskPlanning/edit', editSettingUrl: 'project/projectTaskPlanning/edit',
settingQueryForm: '/project/projectTaskPlanning/list'
}, },
regulatoryCertificationTaskPlanList: [] regulatoryCertificationTaskPlanList: []
} }
@@ -179,8 +180,8 @@
} }
}) })
}, },
settingListForm(){ settingListForm() {
this.getSetting() this.getSetting()
}, },
mainEcharts() { mainEcharts() {
var myChart = echarts.init(document.getElementById('main')) var myChart = echarts.init(document.getElementById('main'))
@@ -273,7 +274,6 @@
.process-content { .process-content {
margin-top: 4px; margin-top: 4px;
height: 60px;
position: relative; position: relative;
.process-content-content { .process-content-content {
@@ -293,13 +293,14 @@
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #040B29; color: #040B29;
max-width: 94px; max-width: 155px;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
} }
.process-content-right-button { .process-content-right-button {
max-width: 155px;
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #6F7385; color: #6F7385;
@@ -318,7 +319,7 @@
} }
.process-content-right-xian { .process-content-right-xian {
height: 1px; height: 2px;
width: calc(100% - 27px); width: calc(100% - 27px);
background: #E6E6E9; background: #E6E6E9;
position: absolute; position: absolute;
@@ -353,8 +354,13 @@
.process-content-right-top { .process-content-right-top {
max-width: 70px !important; max-width: 70px !important;
white-space: inherit !important;
overflow: hidden !important;
} }
.process-content-right-button {
max-width: 70px !important;
}
} }
.text-field-right-color { .text-field-right-color {
@@ -246,7 +246,7 @@
list: '/project/projectRelatedPersonnel/list', list: '/project/projectRelatedPersonnel/list',
edit: '/project/projectRelatedPersonnel/edit', edit: '/project/projectRelatedPersonnel/edit',
exportData: '/project/projectRelatedPersonnel/exportXls', exportData: '/project/projectRelatedPersonnel/exportXls',
importZipUrl:'project/projectRelatedPersonnel/importExcel', importZipUrl:'/project/projectRelatedPersonnel/importExcel',
}, },
selectedRowKeys: [] selectedRowKeys: []
} }
@@ -135,7 +135,7 @@
</template> </template>
<script> <script>
import { getAction, postAction } from '@/api/manage' import { getAction, postAction, putAction } from '@/api/manage'
import moment from 'moment' import moment from 'moment'
export default { export default {
@@ -153,19 +153,35 @@
mounted() { mounted() {
}, },
methods: { methods: {
edit(data) { edit() {
this.visible = true this.visible = true
this.$nextTick(() => { this.settingQueryForm()
this.ids = data || [] },
this.formInline = {} settingQueryForm() {
getAction(this.url.settingQueryForm, { projectId: this.$route.query.id }).then((res) => {
if (res.success) {
this.$nextTick(() => {
this.formInline = res.result || {}
})
}
}) })
}, },
handleOk() { handleOk() {
let query = { let query = {
...this.formInline ...this.formInline,
projectId: this.$route.query.id
}
let url = ''
let Action
if (this.formInline.id) {
url = this.url.editSettingUrl
Action = putAction
} else {
url = this.url.addSettingUrl
Action = postAction
} }
this.confirmLoading = true this.confirmLoading = true
postAction(this.url.editSettingUrl, query).then((res) => { Action(url, query).then((res) => {
if (res.success) { if (res.success) {
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.visible = false this.visible = false