修改角色切换
This commit is contained in:
@@ -14,14 +14,17 @@
|
|||||||
@change="tableOnChange"
|
@change="tableOnChange"
|
||||||
@onHeaderRow='onHeaderRow'
|
@onHeaderRow='onHeaderRow'
|
||||||
>
|
>
|
||||||
<span slot="titleName" slot-scope="text">
|
<div :slot="'titleName'+(index+1)" v-for="(item,index) in content">
|
||||||
<span style='padding-right: 20px'>{{ text.sortOrder }} </span><a-button @click='onClickSee(text)'>查看</a-button>
|
<span style='padding-right: 20px'>{{ item.db_field_txt }} </span>
|
||||||
</span>
|
<a-button @click='onClickSee(item)'>查看</a-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<span slot="operationbtn" slot-scope="record">
|
<span slot="operationbtn" slot-scope="record">
|
||||||
<span v-if='homo === 1'>
|
<span v-if='homo === 1'>
|
||||||
<!-- 认证工程师 -->
|
<!-- 认证工程师 -->
|
||||||
<span v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更"'>
|
<span v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更"'>
|
||||||
<span @click='ondataValueTobeinitiated(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
<span
|
||||||
|
@click='ondataValueTobeinitiated(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<span @click='dataValueTobeinitiated'>{{ record.dataValue }}</span>
|
<span @click='dataValueTobeinitiated'>{{ record.dataValue }}</span>
|
||||||
@@ -63,7 +66,9 @@
|
|||||||
<div class="imports-footer">
|
<div class="imports-footer">
|
||||||
<div class="imports-footer-wrap">
|
<div class="imports-footer-wrap">
|
||||||
|
|
||||||
<a-button class="imports-btn imports-sub" type="primary" @click="handleSubmit" v-has="'split:sarFileSplitItems:importSplitResult'">{{$t('preservation')}}</a-button>
|
<a-button class="imports-btn imports-sub" type="primary" @click="handleSubmit"
|
||||||
|
v-has="'split:sarFileSplitItems:importSplitResult'">{{$t('preservation')}}
|
||||||
|
</a-button>
|
||||||
<a-button class="imports-btn" type="primary" @click="cancleImports">{{$t('cancel')}}</a-button>
|
<a-button class="imports-btn" type="primary" @click="cancleImports">{{$t('cancel')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -113,6 +118,7 @@ import { ACCESS_TOKEN } from '@/store/mutation-types'
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import VueDraggableResizable from 'vue-draggable-resizable'
|
import VueDraggableResizable from 'vue-draggable-resizable'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
props: {
|
props: {
|
||||||
@@ -162,18 +168,18 @@ export default {
|
|||||||
z: 1,
|
z: 1,
|
||||||
axis: 'x',
|
axis: 'x',
|
||||||
draggable: true,
|
draggable: true,
|
||||||
resizable: false,
|
resizable: false
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
dragging: (x, y) => {
|
dragging: (x, y) => {
|
||||||
col.width = Math.max(x, 1)
|
col.width = Math.max(x, 1)
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
const drag = h('vue-draggable-resizable', { ...dragProps })
|
const drag = h('vue-draggable-resizable', { ...dragProps })
|
||||||
return h('th', { ...restProps, class: 'resize-table-th' }, [...children, drag])
|
return h('th', { ...restProps, class: 'resize-table-th' }, [...children, drag])
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
token: Vue.ls.get(ACCESS_TOKEN),
|
token: Vue.ls.get(ACCESS_TOKEN),
|
||||||
@@ -182,6 +188,7 @@ export default {
|
|||||||
tableAll: false,
|
tableAll: false,
|
||||||
indeterminate: false,
|
indeterminate: false,
|
||||||
columns: [],
|
columns: [],
|
||||||
|
content: [],
|
||||||
selectedRowKeys: [],
|
selectedRowKeys: [],
|
||||||
selectedRowrowValue: [],
|
selectedRowrowValue: [],
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
@@ -215,7 +222,7 @@ export default {
|
|||||||
Dateline: {},
|
Dateline: {},
|
||||||
getquerySdtId: '', // 当前工程接口人的id
|
getquerySdtId: '', // 当前工程接口人的id
|
||||||
areaVisibleView: false, // 查看配置得弹框
|
areaVisibleView: false, // 查看配置得弹框
|
||||||
configDetail: {}, // 查看配置得详细信息
|
configDetail: {} // 查看配置得详细信息
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -249,14 +256,17 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error);
|
console.log(error)
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 获取工程接口人
|
// 获取工程接口人
|
||||||
getquerySdtList(record) {
|
getquerySdtList(record) {
|
||||||
// 当前工程接口人的id
|
// 当前工程接口人的id
|
||||||
this.getquerySdtId = record.id
|
this.getquerySdtId = record.id
|
||||||
getAction(this.url.getquerySdtList, {projectId: this.$route.query.id, dutyTerritory: record.dutyTerritory}).then((res) => {
|
getAction(this.url.getquerySdtList, {
|
||||||
|
projectId: this.$route.query.id,
|
||||||
|
dutyTerritory: record.dutyTerritory
|
||||||
|
}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.querySdtList = res.result
|
this.querySdtList = res.result
|
||||||
}
|
}
|
||||||
@@ -293,8 +303,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error);
|
console.log(error)
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 工程接口人 取消
|
// 工程接口人 取消
|
||||||
cancleImports() {
|
cancleImports() {
|
||||||
@@ -357,6 +367,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
var jsonHead = res.result
|
var jsonHead = res.result
|
||||||
this.columns = []
|
this.columns = []
|
||||||
|
let num = 0
|
||||||
|
this.content = []
|
||||||
jsonHead.forEach((res, index) => {
|
jsonHead.forEach((res, index) => {
|
||||||
// 配置列
|
// 配置列
|
||||||
if (res.type) {
|
if (res.type) {
|
||||||
@@ -367,9 +379,11 @@ export default {
|
|||||||
sorter: res.sort,
|
sorter: res.sort,
|
||||||
sortOrder: res.db_field_txt
|
sortOrder: res.db_field_txt
|
||||||
})
|
})
|
||||||
|
num++
|
||||||
|
this.content.push(res)
|
||||||
this.columns[index].scopedSlots = {
|
this.columns[index].scopedSlots = {
|
||||||
customRender: 'detailClick',
|
customRender: 'detailClick',
|
||||||
title: 'titleName'
|
title: 'titleName' + num
|
||||||
}
|
}
|
||||||
// 非配置列
|
// 非配置列
|
||||||
} else {
|
} else {
|
||||||
@@ -388,6 +402,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.columns = [...this.columns]
|
||||||
|
console.log(this.columns)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -397,7 +413,7 @@ export default {
|
|||||||
getTableListReset() {
|
getTableListReset() {
|
||||||
let params = {
|
let params = {
|
||||||
paramsManifestId: this.paramsManifest.id,
|
paramsManifestId: this.paramsManifest.id,
|
||||||
userTypes: this.LoginUserType,
|
userTypes: this.LoginUserType
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$emit('listReset', '')
|
this.$emit('listReset', '')
|
||||||
@@ -470,11 +486,13 @@ export default {
|
|||||||
.imports-footer-wrap {
|
.imports-footer-wrap {
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.imports-sub {
|
.imports-sub {
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.table .ant-table-column-title {
|
.table .ant-table-column-title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -482,14 +500,17 @@ export default {
|
|||||||
.ant-table td {
|
.ant-table td {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-text {
|
.content-text {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
.text-field {
|
.text-field {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.text-field-left {
|
.text-field-left {
|
||||||
width: 70px;
|
width: 70px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -528,6 +549,7 @@ export default {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-draggable-handle {
|
.table-draggable-handle {
|
||||||
/* width: 10px !important; */
|
/* width: 10px !important; */
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
@@ -540,6 +562,7 @@ export default {
|
|||||||
transform: none !important;
|
transform: none !important;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.resize-table-th {
|
.resize-table-th {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,7 +144,7 @@
|
|||||||
for (let j = 0; j < timeDataList.length; j++) {
|
for (let j = 0; j < timeDataList.length; j++) {
|
||||||
let time = JSON.stringify(timeDataList[j].time).slice(1, 11)
|
let time = JSON.stringify(timeDataList[j].time).slice(1, 11)
|
||||||
if (time == list[i]) {
|
if (time == list[i]) {
|
||||||
data.push([i, timeDataList[j].index, 14, j])
|
data.push([i, timeDataList[j].index, 12, j])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -231,6 +231,7 @@
|
|||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
type: 'scatter',
|
type: 'scatter',
|
||||||
|
color:['#21c9cc'],
|
||||||
symbolSize: function(val) {
|
symbolSize: function(val) {
|
||||||
return val[2] * 2
|
return val[2] * 2
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user