| | |
| | | }], |
| | | }, |
| | | { |
| | | label: '选项范围', |
| | | prop: 'optionRange', |
| | | type: 'radio', |
| | | value: 0, |
| | | button: true, |
| | | row: true, |
| | | dicData: [{ |
| | | label: '单选', |
| | | value: 0 |
| | | }, { |
| | | label: '多选', |
| | | value: 1 |
| | | }], |
| | | rules: [{ |
| | | required: true, |
| | | message: '请选项范围', |
| | | trigger: 'blur' |
| | | }], |
| | | }, |
| | | { |
| | | label: '选项必填', |
| | | label: '议题必填', |
| | | prop: 'mandatoryFlag', |
| | | type: 'radio', |
| | | value: 1, |
| | |
| | | }], |
| | | }, |
| | | { |
| | | label: '选项范围', |
| | | prop: 'optionRange', |
| | | type: 'radio', |
| | | value: 0, |
| | | button: true, |
| | | row: true, |
| | | dicData: [{ |
| | | label: '单选', |
| | | value: 0 |
| | | }, { |
| | | label: '多选', |
| | | value: 1 |
| | | }], |
| | | rules: [{ |
| | | required: true, |
| | | message: '请选项范围', |
| | | trigger: 'blur' |
| | | }], |
| | | }, |
| | | |
| | | { |
| | | label: '最多可选', |
| | | prop: 'optionNumber', |
| | | display: false, |
| | |
| | | message: '请输入最多可选择数量', |
| | | trigger: 'blur' |
| | | }], |
| | | span: 4, |
| | | }, |
| | | |
| | | { |
| | | width: 110, |
| | | labelWidth: 100, |
| | | label: "附件", |
| | | prop: "attachment", |
| | | type: "upload", |
| | | listType: "text", |
| | | action: "/api/blade-resource/oss/endpoint/put-pdfFile", |
| | | accept: "application/pdf", |
| | | propsHttp: { |
| | | res: "data", |
| | | name: 'name', |
| | | url: "link", |
| | | }, |
| | | span: 24, |
| | | }, |
| | | { |
| | | label: '选项内容', |
| | | prop: 'children', |
| | |
| | | }, |
| | | |
| | | initData(newData) { |
| | | console.log("======>", newData); |
| | | this.editFlag = false |
| | | this.popupTableShow = true |
| | | this.articleId = newData.id |
| | |
| | | handleSubmit(form, done) { |
| | | done() |
| | | form.articleId = this.articleId |
| | | console.log("form===>", form); |
| | | |
| | | |
| | | if (this.editFlag && Array.isArray(form.attachment)) { |
| | | if (form.attachment.length > 0) { |
| | | var urls = [] |
| | | // var split = form.attachment.split(",") |
| | | form.attachment.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | form.attachment = urls.join(",") |
| | | }else { |
| | | form.attachment = ""; |
| | | } |
| | | } else { |
| | | if (form.attachment) { |
| | | var urls = []; |
| | | var splits = form.attachment.split(","); |
| | | splits.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | form.attachment = urls.join(",") |
| | | } |
| | | } |
| | | |
| | | if (this.disCussFromListClone.length > 0) { |
| | | this.disCussFromListClone.forEach(item => { |
| | | if (form.children.length > 0) { |
| | |
| | | // 提交修改 |
| | | rowUpdate(row, index, done, loading) { |
| | | done() |
| | | |
| | | if (row.attachment.length > 0) { |
| | | var urls = [] |
| | | var split = row.attachment.split(",") |
| | | split.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | row.attachment = urls.join(",") |
| | | } |
| | | |
| | | if (!row.id) { |
| | | addPd(row).then(() => { |
| | | this.onLoad() |
| | |
| | | proxy: { |
| | | "/api": { |
| | | //本地服务接口地址 |
| | | target:"http://192.168.2.140:9528", |
| | | target:"http://192.168.2.111:9528", |
| | | // target: "https://srgdjczzxtpt.com:2080/api", |
| | | // target: "https://kt39592615.goho.co", |
| | | // target: "http://z4042833u6.wicp.vip", |