|
|
|
@ -5,7 +5,7 @@ |
|
|
|
<el-form :inline="true" @submit.native.prevent label-position="top" label-width="100px" style="margin-top: -5px;"> |
|
|
|
<el-row> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" style="" @click="getBaseList(26)"><a herf="#">操作员:</a></span> |
|
|
|
<span slot="label" style="" @click="getBaseList(26)"><a herf="#">{{ labels.operatorId }}</a></span> |
|
|
|
<el-input ref="operatorId" @keyup.enter.native="saveOperatorData" @blur="checkOperatorId" |
|
|
|
v-model="operatorData.operatorId" |
|
|
|
style="width: 110px"> |
|
|
|
@ -13,7 +13,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-form-item :label="'操作员姓名:'"> |
|
|
|
<el-form-item :label=labels.operatorName> |
|
|
|
<el-input class="customer-color" v-model="operatorData.operatorName" readonly="readonly" |
|
|
|
style="width: 110px;"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -22,11 +22,12 @@ |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" |
|
|
|
style="margin-left: 180px; margin-top: -80px; width: 60px;"> |
|
|
|
<el-form-item label="" style="margin-top: 10px; margin-bottom: 0px;"> |
|
|
|
<el-button type="primary" @click="saveOperatorData">保存</el-button> |
|
|
|
<el-button type="primary" @click="saveOperatorData">{{ buttons.saveButton }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="" style="margin-top: 25px; margin-bottom: 15px;"> |
|
|
|
<el-button type="primary" @click="closeDialog">关闭</el-button> |
|
|
|
<el-button type="primary" @click="closeDialog">{{ buttons.closeButton }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">对语言设置</el-button> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
@ -40,14 +41,31 @@ |
|
|
|
import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/ |
|
|
|
import { |
|
|
|
getOperatorData, |
|
|
|
} from '@/api/yieldReport/produce_order.js' |
|
|
|
} from '@/api/yieldReport/produce_order.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
searchSysLanguagePackList, |
|
|
|
searchSysLanguageParam, |
|
|
|
searchFunctionButtonList, |
|
|
|
saveButtonList, |
|
|
|
searchSysLanguage, |
|
|
|
searchLanguageListByLanguageCode, |
|
|
|
saveSysLanguageOne, |
|
|
|
searchPageLanguageData, |
|
|
|
removerLanguage, |
|
|
|
saveSysLanguageList |
|
|
|
} from "@/api/sysLanguage.js"; |
|
|
|
|
|
|
|
import comOpenRoutingMenu from "../schedule/com_open_routing_menu"; |
|
|
|
import comOpenScheduleMenu from "../schedule/com_open_schedule_menu"; |
|
|
|
|
|
|
|
var functionId = 'C10000001'; |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
titleCon: '操作员切换', |
|
|
|
showDefault: false, |
|
|
|
operatorFlag: false, |
|
|
|
operatorData: { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
@ -57,6 +75,63 @@ export default { |
|
|
|
status: '', |
|
|
|
reportType: 0 |
|
|
|
}, |
|
|
|
buttons: { |
|
|
|
saveButton: '保存', |
|
|
|
closeButton: '关闭', |
|
|
|
}, |
|
|
|
buttonList: [ |
|
|
|
{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '保存', |
|
|
|
objectId: 'saveButton', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '关闭', |
|
|
|
objectId: 'closeButton', |
|
|
|
objectType: 'button', |
|
|
|
tableId: '*' |
|
|
|
}, |
|
|
|
], |
|
|
|
queryButton: { |
|
|
|
functionId: functionId, |
|
|
|
table_id: '*', |
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
objectType: 'button' |
|
|
|
}, |
|
|
|
labels: { |
|
|
|
componentTitle: '操作员切换', |
|
|
|
operatorId: '操作员:', |
|
|
|
operatorName: '操作员名称:', |
|
|
|
}, |
|
|
|
labelsList: [ |
|
|
|
{ |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '操作员切换', |
|
|
|
objectId: 'componentTitle', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '操作员:', |
|
|
|
objectId: 'operatorId', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, { |
|
|
|
functionId: functionId, |
|
|
|
languageValue: '操作员名称:', |
|
|
|
objectId: 'operatorName', |
|
|
|
objectType: 'label', |
|
|
|
tableId: '*' |
|
|
|
}, |
|
|
|
], |
|
|
|
queryLabel: { |
|
|
|
functionId: functionId, |
|
|
|
table_id: '*', |
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
objectType: 'label' |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
/*组件*/ |
|
|
|
@ -85,6 +160,7 @@ export default { |
|
|
|
}); |
|
|
|
//刷新当前派工单的信息 |
|
|
|
//this.refreshPageData(); |
|
|
|
this.titleCon = this.labels.componentTitle;//重置标题 |
|
|
|
}, |
|
|
|
//查询操作员信息 |
|
|
|
saveOperatorData() { |
|
|
|
@ -182,8 +258,40 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 保存 默认配置 列 |
|
|
|
async saveMultiLanguage() { |
|
|
|
// 保存页面 button label title 属性 |
|
|
|
let buttons = this.buttonList; |
|
|
|
let labels = this.labelsList; |
|
|
|
await saveButtonList(buttons) |
|
|
|
await saveButtonList(labels) |
|
|
|
this.getMultiLanguageList() |
|
|
|
}, |
|
|
|
|
|
|
|
getMultiLanguageList() { |
|
|
|
//首先查询当前按钮的多语言 |
|
|
|
searchFunctionButtonList(this.queryButton).then(({data}) => { |
|
|
|
if (JSON.stringify(data.data) != '{}') { |
|
|
|
this.buttons = data.data |
|
|
|
} else { |
|
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
// }) |
|
|
|
} |
|
|
|
}); |
|
|
|
//其次查询当前标签的多语言 |
|
|
|
searchFunctionButtonList(this.queryLabel).then(({data}) => { |
|
|
|
if (JSON.stringify(data.data) != '{}') { |
|
|
|
this.labels = data.data |
|
|
|
} else { |
|
|
|
// saveButtonList(this.buttonList).then(({data}) => { |
|
|
|
// }) |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getMultiLanguageList()//刷新多语言 |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|