|
|
@@ -1061,7 +1061,8 @@ define(['app/app'], function (app) {
|
|
|
$scope.setShowRateBoxFlag = function (flag) {
|
|
|
$scope.showRateBoxFlag = flag;
|
|
|
if (!flag){
|
|
|
- $scope.boxStatus = 1;
|
|
|
+ $scope.boxStatus = 2;
|
|
|
+ $scope.rateContent.level = 1;
|
|
|
$scope.modalTempData.rateContent = '';
|
|
|
$scope.modalTempData.modalTitle = '';
|
|
|
}
|
|
|
@@ -1089,12 +1090,31 @@ define(['app/app'], function (app) {
|
|
|
* 3:新增模板
|
|
|
* 4:修改模板
|
|
|
* ***/
|
|
|
- $scope.boxStatus = 1;
|
|
|
+ $scope.boxStatus = 2;
|
|
|
+
|
|
|
+
|
|
|
+ $scope.returnStep1 = function () {
|
|
|
+ $scope.setBoxStatus(1);
|
|
|
+ $scope.modalTempData.rateContent = $scope.rateContentTemp;
|
|
|
+ $scope.modalTempData.modalTitle = $scope.modalTitleTemp;
|
|
|
+ }
|
|
|
|
|
|
$scope.setBoxStatus = function (boxStatus) {
|
|
|
+ if (boxStatus == 3 || boxStatus == 4){
|
|
|
+ $scope.rateContentTemp = angular.copy($scope.modalTempData.rateContent);
|
|
|
+ $scope.modalTitleTemp = angular.copy($scope.modalTempData.modalTitle);
|
|
|
+ }
|
|
|
$scope.boxStatus = boxStatus;
|
|
|
}
|
|
|
|
|
|
+ $scope.setGo = function(){
|
|
|
+ if ( $scope.boxStatus == 1 ){
|
|
|
+ $scope.modalTempData.rateContent = '';
|
|
|
+ $scope.modalTempData.modalTitle = '';
|
|
|
+ }
|
|
|
+ $scope.setBoxStatus($scope.boxStatus == 1?2:1);
|
|
|
+ }
|
|
|
+
|
|
|
//控制模板列表显示
|
|
|
$scope.showModalListFlag = false;
|
|
|
|
|
|
@@ -1112,8 +1132,8 @@ define(['app/app'], function (app) {
|
|
|
|
|
|
$scope.addModal = function () {
|
|
|
$scope.showModalListFlag = false;
|
|
|
- $scope.modalTempData = {};
|
|
|
$scope.setBoxStatus(3);
|
|
|
+ $scope.modalTempData = {};
|
|
|
}
|
|
|
|
|
|
//选择模板
|