Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aed5e99e
authored
Mar 30, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'chenwq_dev_v2.0.0' into 'v2.0.0'
素材弹窗-去掉自定义链接 See merge request
!72
2 parents
ac66c085
5245b628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
80 deletions
src/views/sop/editSop/components/materialModel.vue
src/views/sop/editSop/components/materialModel.vue
View file @
aed5e99
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<p
class=
"model-item-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
.png
</p>
<p
class=
"model-item-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
.png
</p>
</span>
</span>
<!-- 素材为自定义链接 -->
<!-- 素材为自定义链接 -->
<
span
v-if=
"item.materialType == 2"
></span
>
<
!--
<span
v-if=
"item.materialType == 2"
></span>
--
>
<!-- 图文 -->
<!-- 图文 -->
<span
v-if=
"item.materialType == 3"
class=
"material-content"
>
<span
v-if=
"item.materialType == 3"
class=
"material-content"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
...
@@ -105,10 +105,10 @@ export default {
...
@@ -105,10 +105,10 @@ export default {
confId
:
1
,
confId
:
1
,
confName
:
'PDF'
confName
:
'PDF'
},
},
{
//
{
confId
:
2
,
//
confId: 2,
confName
:
'自定义链接'
//
confName: '自定义链接'
},
//
},
{
{
confId
:
3
,
confId
:
3
,
confName
:
'图文'
confName
:
'图文'
...
@@ -123,27 +123,6 @@ export default {
...
@@ -123,27 +123,6 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
}
}
// selectedId: {
// type: String,
// default: ''
// }
// storeApi: {
// type: Function,
// default: () => {}
// },
// storeSelected: {
// type: Array,
// default: () => []
// }
// storeSearchForm: {
// type: Object,
// default: () => {}
// }
// 去掉表格中某些字段
// noTableField: {
// type: Array,
// default: () => []
// }
},
},
components
:
{
components
:
{
...
@@ -155,12 +134,6 @@ export default {
...
@@ -155,12 +134,6 @@ export default {
},
},
mounted
()
{
mounted
()
{
// this.selectedData = this.storeSelected
// this.selectedData.forEach(item => {
// item.merchantNo = item.merchantId ? (item.merchantId + '') : item.merchantNo
// })
// this.getSelectingList()
// this.selectItem.id = this.selectedId
this
.
getModelList
()
this
.
getModelList
()
},
},
...
@@ -173,7 +146,6 @@ export default {
...
@@ -173,7 +146,6 @@ export default {
},
},
handleSelectItem
(
item
)
{
handleSelectItem
(
item
)
{
this
.
selectItem
=
item
this
.
selectItem
=
item
// console.log(this.selectItem)
},
},
getModelList
()
{
getModelList
()
{
var
params
=
{
var
params
=
{
...
@@ -249,53 +221,6 @@ export default {
...
@@ -249,53 +221,6 @@ export default {
})
})
}
}
},
},
// selectable(row, index) {
// var isSelect = row.hasOwnProperty('beServed') ? !row.beServed : true
// return isSelect
// },
// recoverySelection() {
// var exitIds = this.selectedData.map(item => item.merchantNo + '')
// this.selectingData.forEach(item => {
// if (exitIds.includes(item.merchantNo + '')) {
// this.$refs.seletingTable.toggleRowSelection(item, true)
// } else {
// this.$refs.seletingTable.toggleRowSelection(item, false)
// }
// })
// },
// getSelectingList() {
// this.storeApi({
// ...this.storeSearchForm,
// pageNum: this.pageNum,
// currentPage: this.pageNum,
// pageSize: this.pageSize
// }).then(res => {
// this.selectingData = res.list
// this.total = res.total
// this.$nextTick(() => {
// this.recoverySelection()
// })
// })
// },
// handleChange(selection, row) {
// var addOrDelete = !!selection.find(item => item.merchantNo === row.merchantNo)
// addOrDelete ? this.selectedData.push(row) : (this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo))
// },
// handleAll(selection) {
// this.selectingData.forEach(item => {
// var isExit = this.selectedData.findIndex(subItem => subItem.merchantNo === item.merchantNo)
// var isServed = item.hasOwnProperty('beServed') ? item.beServed : false
// if (selection.length && isExit === -1 && !isServed) {
// this.selectedData.push(item)
// } else if (!selection.length && isExit !== -1) {
// this.selectedData.splice(isExit, 1)
// }
// })
// },
// handleDelete(row) {
// this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo)
// this.recoverySelection()
// },
handleMaterialConfirm
()
{
handleMaterialConfirm
()
{
this
.
$emit
(
'handleMaterialConfirm'
,
{
this
.
$emit
(
'handleMaterialConfirm'
,
{
objectId
:
this
.
selectItem
.
id
,
objectId
:
this
.
selectItem
.
id
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment