|
|
@@ -54,7 +54,7 @@
|
|
|
<ibps-custom-dialog
|
|
|
v-model="row.weiHuFangShi"
|
|
|
size="mini"
|
|
|
- template-key="sbbqdhk"
|
|
|
+ :template-key="config?'gwzzdhkrcwh':'sbbqdhk'"
|
|
|
multiple
|
|
|
:disabled="true"
|
|
|
type="dialog"
|
|
|
@@ -330,7 +330,7 @@
|
|
|
<ibps-custom-dialog
|
|
|
v-model="search.deviceClass"
|
|
|
size="mini"
|
|
|
- template-key="sbbqdhk"
|
|
|
+ :template-key="config?'gwzzdhkrcwh':'sbbqdhk'"
|
|
|
multiple
|
|
|
:disabled="false"
|
|
|
type="dialog"
|
|
|
@@ -426,8 +426,10 @@ export default {
|
|
|
},
|
|
|
mixins: [FixHeight],
|
|
|
data () {
|
|
|
- const { userId, level = {}, position } = this.$store.getters || {}
|
|
|
+ const { userId, level = {}, position, setting } = this.$store.getters || {}
|
|
|
+
|
|
|
return {
|
|
|
+ config: setting?.postJob?.allocation || false,
|
|
|
filter: [{
|
|
|
descVal: '1',
|
|
|
includeSub: true,
|
|
|
@@ -519,7 +521,7 @@ export default {
|
|
|
{ key: 'customPrint', label: '打印标签', icon: 'ibps-icon-cog', type: 'warning' },
|
|
|
{ key: 'customExport', label: '导出数据', icon: 'ibps-icon-sign-in', type: 'primary' },
|
|
|
{ key: 'customImport', label: '导入数据', icon: 'ibps-icon-sign-in', type: 'primary' },
|
|
|
- { key: 'customSetting', label: '岗位/分组配置', icon: 'ibps-icon-cogs', type: 'info' },
|
|
|
+ // { key: 'customSetting', label: '岗位/分组配置', icon: 'ibps-icon-cogs', type: 'info' },
|
|
|
{ key: 'customRemove', label: '删除', icon: 'ibps-icon-close', type: 'danger', hidden: () => { return !this.hasRole } }
|
|
|
],
|
|
|
// 查询条件
|
|
|
@@ -1077,7 +1079,7 @@ export default {
|
|
|
// const supplierSql = `select id_, gong_ying_shang_m from t_gysxxb where di_dian_ = '${second || first}'` // 供应商信息
|
|
|
const { first, second } = this.$store.getters.level || {}
|
|
|
const { variables: { data: deviceGroupData }} = await this.$common.request('query', {
|
|
|
- key: 'getPositionList',
|
|
|
+ key: this.config ? 'gwzzzha' : 'getPositionList',
|
|
|
params: [second || first]
|
|
|
})
|
|
|
const { variables: { data: gysData }} = await this.$common.request('query', {
|
|
|
@@ -1572,7 +1574,7 @@ export default {
|
|
|
Promise.all([
|
|
|
this.$common.request('query', { key: 'getRoomData', params: [currentPosition] }),
|
|
|
this.$common.request('query', { key: 'getSupplierList', params: [currentPosition] }),
|
|
|
- this.$common.request('query', { key: 'getPositionList', params: [currentPosition] })]).then(async ([res1, res2, res3]) => {
|
|
|
+ this.$common.request('query', { key: this.config ? 'gwzzzha' : 'getPositionList', params: [currentPosition] })]).then(async ([res1, res2, res3]) => {
|
|
|
const { data: positionList = [] } = res1.variables || {}
|
|
|
const { data: supplierList = [] } = res2.variables || {}
|
|
|
const { data: deviceGroupList = [] } = res3.variables || {}
|