imeik-bizui 2.0.7 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -303,28 +303,34 @@ export default {
303
303
  this.$set(this.formConfig.formItems[index].attrs, 'disabled', false)
304
304
  }
305
305
  }
306
- getTagManageList({ tagModel: 'APPLY', tagCode: 'al-fxssqxmbh' }).then((res) => {
307
- if (res.code === 200) {
308
- Axios.get(res.data[0].tagValueUrl).then((subRes) => {
309
- if (subRes.data.code === 200) {
310
- const fiterData = []
311
- subRes.data.data.forEach((item) => {
312
- if (this.belongCompany === item.dicExt) {
313
- item.label = item.dicName
314
- item.value = item.dicValue
315
- fiterData.push(item)
316
- }
317
- })
318
- const options = fiterData
319
- const newData = JSON.parse(JSON.stringify(this.formConfig.formItems[index]))
320
- newData.attrs.options = options
321
- this.$set(this.formConfig.formItems, index, newData)
322
- }
323
- })
324
- } else {
325
- this.$message.error(res.msg)
326
- }
327
- })
306
+ if (this.isView) {
307
+ const newData = JSON.parse(JSON.stringify(this.formConfig.formItems[index]))
308
+ newData.type = 'ImInput'
309
+ this.$set(this.formConfig.formItems, index, newData)
310
+ } else {
311
+ getTagManageList({ tagModel: 'APPLY', tagCode: 'al-fxssqxmbh' }).then((res) => {
312
+ if (res.code === 200) {
313
+ Axios.get(res.data[0].tagValueUrl).then((subRes) => {
314
+ if (subRes.data.code === 200) {
315
+ const fiterData = []
316
+ subRes.data.data.forEach((item) => {
317
+ if (this.belongCompany === item.dicExt) {
318
+ item.label = item.dicName
319
+ item.value = item.dicValue
320
+ fiterData.push(item)
321
+ }
322
+ })
323
+ const options = fiterData
324
+ const newData = JSON.parse(JSON.stringify(this.formConfig.formItems[index]))
325
+ newData.attrs.options = options
326
+ this.$set(this.formConfig.formItems, index, newData)
327
+ }
328
+ })
329
+ } else {
330
+ this.$message.error(res.msg)
331
+ }
332
+ })
333
+ }
328
334
  },
329
335
  propChange(data) {
330
336
  // 写入负责人姓名